This package contains the infrastructure of the Codec system.

Those wanting to implement their own codecs should refine one of the four codec flavours: ByteToByteCodec, ByteToCharacterCodec, CharacterToByteCodec, and CharacterToCharacterCodec.

Values
auctionByteToByteEncodeSource Codeshared IncrementalCodec<ByteBuffer,List<Byte>,Byte,ByteBuffer,List<Byte>,Byte>[]({Byte*}) auctionByteToByteEncode
ignoreSource Codeshared ignore ignore

Continue without throwing an exception

resetSource Codeshared reset reset

Reset the internal state, then continue without throwing an exception

strictSource Codeshared strict strict
Functions
buildAuctionSource Codeshared IncrementalCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle>[] buildAuction<ToMutable, ToImmutable, ToSingle, FromMutable, FromImmutable, FromSingle>({IncrementalCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle>+} bidders)({FromSingle*} lot)
buildCodecLookupSource Codeshared Map<String,CodecOrLower> buildCodecLookup<CodecOrLower>({CodecOrLower*} codecs)
given CodecOrLower satisfies Codec
Interfaces
ByteToByteCodecSource Codeshared ByteToByteCodec

Common interface for Codecs that convert between bytes and bytes. Examples: gzip, and base64.

ByteToCharacterCodecSource Codeshared ByteToCharacterCodec

Common interface for Codecs that convert between bytes and characters. Examples: utf8, ascii.

CharacterToByteCodecSource Codeshared CharacterToByteCodec

Common interface for Codecs that convert between characters and bytes. Examples: base64.

CharacterToCharacterCodecSource Codeshared CharacterToCharacterCodec

Common interface for Codecs that convert between characters and characters. Examples: rot13.

CodecSource Codeshared Codec
IncrementalCodecSource Codeshared IncrementalCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle>
given ToMutable satisfies Buffer<ToSingle>
given FromMutable satisfies Buffer<FromSingle>

Codecs that can process input into output in portions of the whole.

PieceConvertSource Codeshared PieceConvert<ToSingle,FromSingle>

Converts single pieces of input into output pieces

StatelessCodecSource Codeshared StatelessCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle>
given ToMutable satisfies Buffer<ToSingle>
given FromMutable satisfies Buffer<FromSingle>

Codecs that can take an input all at once, and return the output all at once.

Classes
ChunkConvertSource Codeshared ChunkConvert<ToMutable,ToSingle,FromSingle>
given ToMutable satisfies Buffer<ToSingle>
CumulativeConvertSource Codeshared CumulativeConvert<ToMutable,FromImmutable,ToSingle,FromSingle>
given ToMutable satisfies Buffer<ToSingle>

Convert into a new buffer as portions arrive and return the buffer when the input is complete.

ErrorStrategySource Codeshared abstract ErrorStrategy

Action to take when an error is encountered during encoding or decoding.

ignoreSource Codeshared ignore

Continue without throwing an exception

resetSource Codeshared reset

Reset the internal state, then continue without throwing an exception

strictSource Codeshared strict
Exceptions
ConvertExceptionSource Codeshared ConvertException

Thrown by failed conversion operations

DecodeExceptionSource Codeshared DecodeException

Thrown by failed decode operations

EncodeExceptionSource Codeshared EncodeException

Thrown by failed encode operations