|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.spi.ContentEncoder
org.glassfish.jersey.message.GZipEncoder
public class GZipEncoder
GZIP encoding support. Interceptor that encodes the output or decodes the input if
Content-Encoding header value equals to gzip or x-gzip.
| Constructor Summary | |
|---|---|
GZipEncoder()
Initialize GZipEncoder. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
decode(java.lang.String contentEncoding,
java.io.InputStream encodedStream)
Implementations of this method should take the encoded stream, wrap it and return a stream that can be used to read the decoded entity. |
java.io.OutputStream |
encode(java.lang.String contentEncoding,
java.io.OutputStream entityStream)
Implementations of this method should take the entity stream, wrap it and return a stream that is encoded using the specified encoding. |
| Methods inherited from class org.glassfish.jersey.spi.ContentEncoder |
|---|
aroundReadFrom, aroundWriteTo, getSupportedEncodings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GZipEncoder()
| Method Detail |
|---|
public java.io.InputStream decode(java.lang.String contentEncoding,
java.io.InputStream encodedStream)
throws java.io.IOException
ContentEncoder
decode in class ContentEncodercontentEncoding - Encoding to be used to decode the stream - guaranteed to be one of the supported encoding
values.encodedStream - Encoded input stream.
java.io.IOException - if an IO error arises.
public java.io.OutputStream encode(java.lang.String contentEncoding,
java.io.OutputStream entityStream)
throws java.io.IOException
ContentEncoder
encode in class ContentEncodercontentEncoding - Encoding to be used to encode the entity - guaranteed to be one of the supported encoding
values.entityStream - Entity stream to be encoded.
java.io.IOException - if an IO error arises.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||