Class InputStreamWithSize

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.dalesbred.datatype.InputStreamWithSize
All Implemented Interfaces:
Closeable, AutoCloseable

public final class InputStreamWithSize extends 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 Details

    • InputStreamWithSize

      public InputStreamWithSize(@NotNull @NotNull InputStream in, long size)
  • Method Details

    • getSize

      public long getSize()