Package org.dalesbred.datatype
Class InputStreamWithSize
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.dalesbred.datatype.InputStreamWithSize
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class InputStreamWithSize extends java.io.FilterInputStream
InputStream that also knows the length of its input. When this kind of stream is passed in place of normal stream, the database can optimize its work better.
-
-
Constructor Summary
Constructors Constructor Description InputStreamWithSize(@NotNull java.io.InputStream in, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize()
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
-