Class BufferInputStream

java.lang.Object
java.io.InputStream
org.glassfish.grizzly.utils.BufferInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BufferInputStream extends InputStream
InputStream implementation over Grizzly Buffer.
Author:
Alexey Stashok
  • Constructor Details

    • BufferInputStream

      public BufferInputStream(Buffer buffer)
      Create the InputStream over Grizzly Buffer. Constructed BufferInputStream read operations will affect the passed Buffer position, which means each BufferInputStream read operation will shift Buffer's position by number of bytes, which were read.
      Parameters:
      buffer -
    • BufferInputStream

      public BufferInputStream(Buffer buffer, int position, int limit)
      Create the InputStream over Grizzly Buffer. Constructed BufferInputStream read operations will *not* affect the passed Buffer position, which means the passed Buffer position will never be changed during BufferInputStream
      Parameters:
      buffer -
  • Method Details