Class InputStreamWithJsonNode
java.lang.Object
java.io.InputStream
org.nuxeo.ecm.core.io.marshallers.json.InputStreamWithJsonNode
- All Implemented Interfaces:
Closeable,AutoCloseable
This
InputStream is a technical wrapper for JsonNode. It's used to broadcast a JsonNode between
marshallers.
take a look at AbstractJsonReader.getNode(InputStream, boolean) to understand the mechanism.
- Since:
- 7.2
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
InputStreamWithJsonNode
public InputStreamWithJsonNode(com.fasterxml.jackson.databind.JsonNode jn)
-
-
Method Details
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode() -
getRealInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
toString
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-