public class SpdyDeflaterOutputStream extends OutputStream
| Constructor and Description |
|---|
SpdyDeflaterOutputStream(MemoryManager mm,
Deflater deflater) |
SpdyDeflaterOutputStream(MemoryManager mm,
int level) |
| Modifier and Type | Method and Description |
|---|---|
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(Buffer buffer) |
void |
write(Buffer buffer) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic SpdyDeflaterOutputStream(MemoryManager mm, int level)
public SpdyDeflaterOutputStream(MemoryManager mm, Deflater deflater)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public void setInitialOutputBuffer(Buffer buffer)
public 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(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 © 2013 Oracle Corporation. All Rights Reserved.