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
-
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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
toString
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-