Package org.nuxeo.ecm.automation.core.io
Class BlobJsonReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<Blob>
-
- org.nuxeo.ecm.automation.core.io.BlobJsonReader
-
- All Implemented Interfaces:
Marshaller<Blob>,Reader<Blob>
@Setup(mode=SINGLETON, priority=2000) public class BlobJsonReader extends AbstractJsonReader<Blob>
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description BlobJsonReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blobread(com.fasterxml.jackson.databind.JsonNode jn)Implement this method, read the entity data in the providedJsonNodeand return corresponding java object.-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
-
-
-
Method Detail
-
read
public Blob read(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
Description copied from class:AbstractJsonReaderImplement this method, read the entity data in the providedJsonNodeand return corresponding java object.- Specified by:
readin classAbstractJsonReader<Blob>- Parameters:
jn- A ready to useJsonNode.- Returns:
- The unmarshalled entity.
- Throws:
IOException
-
-