// -------------------------------------------------------------- Constants
-
-
- protected static final String ENCODING_NAME = "chunked";
- protected static final ByteChunk ENCODING = new ByteChunk();
-
-
/**
* End chunk.
*/
static {
- ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length());
byte[] END_CHUNK_BYTES = {(byte) '0', (byte) '\r', (byte) '\n',
(byte) '\r', (byte) '\n'};
END_CHUNK.setBytes(END_CHUNK_BYTES, 0, END_CHUNK_BYTES.length);
public class GzipOutputFilter implements OutputFilter {
- // -------------------------------------------------------------- Constants
-
-
- protected static final String ENCODING_NAME = "gzip";
- protected static final ByteChunk ENCODING = new ByteChunk();
-
-
/**
* Logger.
*/
org.apache.juli.logging.LogFactory.getLog(GzipOutputFilter.class);
- // ----------------------------------------------------- Static Initializer
-
-
- static {
- ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length());
- }
-
-
// ----------------------------------------------------- Instance Variables
public class IdentityOutputFilter implements OutputFilter {
- // -------------------------------------------------------------- Constants
-
-
- protected static final String ENCODING_NAME = "identity";
- protected static final ByteChunk ENCODING = new ByteChunk();
-
-
- // ----------------------------------------------------- Static Initializer
-
-
- static {
- ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length());
- }
-
-
// ----------------------------------------------------- Instance Variables
public class VoidOutputFilter implements OutputFilter {
- // -------------------------------------------------------------- Constants
-
-
- protected static final String ENCODING_NAME = "void";
- protected static final ByteChunk ENCODING = new ByteChunk();
-
-
- // ----------------------------------------------------- Static Initializer
-
-
- static {
- ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length());
- }
-
-
// --------------------------------------------------- OutputBuffer Methods