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