Package com.dslplatform.json
Class DslJson.RereadStream
java.lang.Object
java.io.InputStream
com.dslplatform.json.DslJson.RereadStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private intprivate final InputStreamprivate boolean -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
buffer
private final byte[] buffer -
stream
-
usingBuffer
private boolean usingBuffer -
position
private int position
-
-
Constructor Details
-
RereadStream
RereadStream(byte[] buffer, InputStream stream)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-