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) |
write
public 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 OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(Buffer buffer) throws IOException
IOException
protected 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 Flushable
flush
in class OutputStream
IOException
public 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 Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
- if an I/O error occurspublic void reset()
Copyright © 2015 Oracle Corporation. All rights reserved.