Class SpdyInflaterOutputStream
java.lang.Object
java.io.OutputStream
org.glassfish.grizzly.spdy.compression.SpdyInflaterOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Author:
- oleksiys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.grizzly.Buffervoidclose()Writes any remaining uncompressed data to the output stream and closes the underlying output stream.voidfinish()Finishes writing uncompressed data to the output stream without closing the underlying stream.voidflush()intReturns the underlyingInflater.protected intinflate()Writes next block of compressed data to the output stream.voidreset()voidsetBufferSize(int bufferSize) voidwrite(byte[] b, int off, int len) voidwrite(int b) voidwrite(org.glassfish.grizzly.Buffer buffer) Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
SpdyInflaterOutputStream
public SpdyInflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm)
-
-
Method Details
-
getInflater
Returns the underlyingInflater. -
getBufferSize
public int getBufferSize() -
setBufferSize
public void setBufferSize(int bufferSize) -
checkpoint
public org.glassfish.grizzly.Buffer checkpoint() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Throws:
IOException
-
inflate
Writes next block of compressed data to the output stream.- Throws:
IOException- if an I/O error has occurredDataFormatException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
finish
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
Writes any remaining uncompressed data to the output stream and closes the underlying output stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- if an I/O error occurs
-
reset
public void reset()
-