package net.i2p.i2ptunnel.util
Shared helpers for the tunnel implementations, including HTTP header processing.
- ClassDescriptionAn OutputStream that limits how many bytes are written, throwing
EOFExceptionwhen the limit is exceeded.Simple stream for checking and optionally removing RFC2616 chunked encoding to the output.The states of the chunk parser.Write to nowhere.Gunzip implementation per RFC 1952, reusing java's standard CRC32 and Inflater and InflaterOutputStream implementations.Calculate CRC32 along the way.State of the gzip header parse.Abstract output stream that limits writes and provides completion callback.Callback interface for notification when a limited output stream completes.