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 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 Details

    • JSONStringBlobDecoder

      public JSONStringBlobDecoder()
  • Method Details