Package org.apache.derby.impl.jdbc
Class BinaryToRawStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.derby.impl.jdbc.BinaryToRawStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AutoPositioningStream
Converts a stream containing the Derby stored binary form
to one that just contains the application's data.
Simply read and save the length information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Length of the value represented by this stream.private Object
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Return the length of the value in thie stream in bytes.Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
length
private int lengthLength of the value represented by this stream. Set to -1 if the length is unknown. -
parent
-
-
Constructor Details
-
BinaryToRawStream
BinaryToRawStream(InputStream in, Object parent) throws IOException - Throws:
IOException
-
-
Method Details
-
getLength
int getLength()Return the length of the value in thie stream in bytes. If the value is unknown then -1 is returned.
-