Package net.targetr.wtm3.io


package net.targetr.wtm3.io
Stream framing, reusable byte buffers and serialization helpers for WTM3.

MetadataReader reads protocol headers; LengthRestrictedInputStream bounds fixed-length bodies; and ChunkedInputStream and ChunkedOutputStream implement HTTP chunked transfer framing. Monitored stream wrappers count transferred bytes for server statistics.

ReusableBuffer and ReusableBufferList hold data for command and WebSocket processing. The remaining helpers provide bounded stream reading and draining, message digests, MIME-type lookup and JSON output through SimpleJsonWriter.

Author:
Dr Michael Gardiner