public class SpdyDeflaterOutputStream extends OutputStream
| Constructor and Description |
|---|
SpdyDeflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm,
Deflater deflater) |
SpdyDeflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm,
int level) |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.grizzly.Buffer |
checkpoint() |
void |
close()
Writes any remaining uncompressed data to the output stream and closes
the underlying output stream.
|
void |
closeStreamOnly()
Closes the stream, but doesn't finishes the internal
Deflater. |
protected int |
deflate()
Writes next block of compressed data to the output stream.
|
protected int |
deflate(int flush)
Writes next block of compressed data to the output stream.
|
void |
finish()
Finishes writing uncompressed data to the output stream without closing
the underlying stream.
|
void |
flush() |
int |
getBufferSize() |
Deflater |
getDeflater()
Returns the underlying
Deflater. |
void |
reset() |
void |
setBufferSize(int bufferSize) |
void |
setInitialOutputBuffer(org.glassfish.grizzly.Buffer buffer) |
void |
write(org.glassfish.grizzly.Buffer buffer) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic SpdyDeflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm,
int level)
public SpdyDeflaterOutputStream(org.glassfish.grizzly.memory.MemoryManager mm,
Deflater deflater)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public void setInitialOutputBuffer(org.glassfish.grizzly.Buffer buffer)
public org.glassfish.grizzly.Buffer checkpoint()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(org.glassfish.grizzly.Buffer buffer)
throws IOException
IOExceptionprotected int deflate()
IOException - if an I/O error has occurredprotected int deflate(int flush)
IOException - if an I/O error has occurredpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void finish()
throws IOException
IOException - if an I/O error occurs or this stream is already
closedpublic void closeStreamOnly()
Deflater.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException - if an I/O error occurspublic void reset()
Copyright © 2019 Oracle Corporation. All Rights Reserved.