Class ByteBufferInputStream

java.lang.Object
java.io.InputStream
org.apache.druid.io.ByteBufferInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ByteBufferInputStream extends InputStream
Streams bytes from the ByteBuffer's position to the limit as InputStream.
  • Constructor Details

    • ByteBufferInputStream

      public ByteBufferInputStream(ByteBuffer buffer)
      Does *not* make a copy of the given buffer, so the position of the given buffer is incremented, as the created InputStream is used.
  • Method Details