Class 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 Detail

      • JSONStringBlobDecoder

        public JSONStringBlobDecoder()
    • Method Detail

      • getBlobFromJSON

        public Blob getBlobFromJSON​(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
        Specified by:
        getBlobFromJSON in interface JSONBlobDecoder