public class JSONStringBlobDecoder extends Object implements JSONBlobDecoder
Format is:
{ "filename": "mydoc.txt", "name": "mydoc.txt", <-- if filename is null, read name "encoding": "UTF-8", <-- defaults to UTF-8 "mime-type": "text/plain", <- defaults to text/plain "data": "my data", "content": "my data" <-- if data is not present, read content }
Constructor and Description |
---|
JSONStringBlobDecoder() |
Modifier and Type | Method and Description |
---|---|
Blob |
getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject) |
public JSONStringBlobDecoder()
public Blob getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
getBlobFromJSON
in interface JSONBlobDecoder
Copyright © 2019 Nuxeo. All rights reserved.