Class ByteBufferInputStream

java.lang.Object
java.io.InputStream
gaiasky.util.io.ByteBufferInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ByteBufferInputStream extends InputStream
  • Constructor Details

    • ByteBufferInputStream

      public ByteBufferInputStream()
    • ByteBufferInputStream

      public ByteBufferInputStream(int bufferSize)
      Creates a stream with a new non-direct buffer of the specified size. The position and limit of the buffer is zero.
    • ByteBufferInputStream

      public ByteBufferInputStream(ByteBuffer byteBuffer)
      Creates an uninitialized stream that cannot be used until setByteBuffer(ByteBuffer) is called.
  • Method Details