Class JSONStringBlobDecoder
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.util.JSONStringBlobDecoder
-
- All Implemented Interfaces:
JSONBlobDecoder
public class JSONStringBlobDecoder extends Object implements JSONBlobDecoder
Very basic implementation of a Blob decoder Only usable for StringBlobsFormat 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 }
- Since:
- 5.5
- Author:
- Tiry ([email protected])
-
-
Constructor Summary
Constructors Constructor Description JSONStringBlobDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
-
-
-
Method Detail
-
getBlobFromJSON
public Blob getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
- Specified by:
getBlobFromJSON
in interfaceJSONBlobDecoder
-
-