|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.tcp.http11.filters.LzmaOutputFilter
public class LzmaOutputFilter
LZMA OutputFilter implementation.
| Nested Class Summary | |
|---|---|
protected class |
LzmaOutputFilter.FakeOutputStream
|
static class |
LzmaOutputFilter.LzmaProperties
|
static class |
LzmaOutputFilter.ReusableByteArrayInputStream
|
| Field Summary | |
|---|---|
protected OutputBuffer |
buffer
Next buffer in the pipeline. |
protected LzmaOutputFilter.ReusableByteArrayInputStream |
byteArrayInputStream
|
protected Encoder |
encoder
Compression output stream. |
protected static ByteChunk |
ENCODING
|
static String |
ENCODING_NAME
|
protected OutputStream |
fakeOutputStream
Fake internal output stream. |
protected LzmaOutputFilter.LzmaProperties |
lzmaProperties
|
| Constructor Summary | |
|---|---|
LzmaOutputFilter()
|
|
| Method Summary | |
|---|---|
int |
doWrite(ByteChunk chunk,
Response res)
Write some bytes. |
long |
end()
End the current request. |
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is "identity". |
void |
recycle()
Make the filter ready to process the next request. |
void |
setBuffer(OutputBuffer buffer)
Set the next buffer in the filter pipeline. |
void |
setResponse(Response response)
Some filters need additional parameters from the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENCODING_NAME
protected static final ByteChunk ENCODING
protected OutputBuffer buffer
protected Encoder encoder
protected final LzmaOutputFilter.LzmaProperties lzmaProperties
protected final LzmaOutputFilter.ReusableByteArrayInputStream byteArrayInputStream
protected OutputStream fakeOutputStream
| Constructor Detail |
|---|
public LzmaOutputFilter()
| Method Detail |
|---|
public int doWrite(ByteChunk chunk,
Response res)
throws IOException
doWrite in interface OutputFilterdoWrite in interface OutputBufferchunk - Data to writeres - Used to allow buffers that can be shared by multiple
responses.
IOExceptionpublic void setResponse(Response response)
setResponse in interface OutputFilterpublic void setBuffer(OutputBuffer buffer)
setBuffer in interface OutputFilter
public long end()
throws IOException
end in interface OutputFilterIOExceptionpublic void recycle()
recycle in interface OutputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface OutputFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||