Class SpdyInflaterOutputStream

java.lang.Object
java.io.OutputStream
org.glassfish.grizzly.spdy.compression.SpdyInflaterOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class SpdyInflaterOutputStream extends OutputStream
Author:
oleksiys
  • Constructor Details

    • SpdyInflaterOutputStream

      public SpdyInflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm)
  • Method Details

    • getInflater

      public Inflater getInflater()
      Returns the underlying Inflater.
    • getBufferSize

      public int getBufferSize()
    • setBufferSize

      public void setBufferSize(int bufferSize)
    • checkpoint

      public org.glassfish.grizzly.Buffer checkpoint()
    • write

      public void write(int b) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(org.glassfish.grizzly.Buffer buffer) throws IOException
      Throws:
      IOException
    • inflate

      protected int inflate() throws DataFormatException
      Writes next block of compressed data to the output stream.
      Throws:
      IOException - if an I/O error has occurred
      DataFormatException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException
    • finish

      public void finish() throws IOException
      Finishes writing uncompressed data to the output stream without closing the underlying stream. Use this method when applying multiple filters in succession to the same output stream.
      Throws:
      IOException - if an I/O error occurs or this stream is already closed
    • close

      public void close() throws IOException
      Writes any remaining uncompressed data to the output stream and closes the underlying output stream.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
      Throws:
      IOException - if an I/O error occurs
    • reset

      public void reset()