public class SpdyInflaterOutputStream extends OutputStream
Constructor and Description |
---|
SpdyInflaterOutputStream(MemoryManager mm) |
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 |
finish()
Finishes writing uncompressed data to the output stream without closing
the underlying stream.
|
void |
flush() |
int |
getBufferSize() |
Inflater |
getInflater()
Returns the underlying
Inflater . |
protected int |
inflate()
Writes next block of compressed data to the output stream.
|
void |
reset() |
void |
setBufferSize(int bufferSize) |
void |
write(Buffer buffer) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
write
public SpdyInflaterOutputStream(MemoryManager mm)
public int getBufferSize()
public void setBufferSize(int bufferSize)
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 inflate() throws DataFormatException
IOException
- if an I/O error has occurredDataFormatException
public 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 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.