A classic simple substitution cipher.
Any character found to be a key in the encodeMapping
/decodeMapping
is
replaced with its corresponding item. Other characters are passed through
without modification.
Initializer |
Substitution(Map<Character,Character> encodeMapping) |
Attributes | |
aliases | Source Codeshared actual default [String+] aliases A list of common names. The first alias is Refines Codec.aliases |
decodeMapping | Source Codeshared Map<Character,Character> decodeMapping |
encodeMapping | Source Codeshared Map<Character,Character> encodeMapping |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Codec |
Methods | |
averageDecodeSize | Source Codeshared actual Integer averageDecodeSize(Integer inputSize) Estimate an initial output buffer size that balances memory conservation with the risk of a resize for decoding operations. Refines Codec.averageDecodeSize |
averageEncodeSize | Source Codeshared actual Integer averageEncodeSize(Integer inputSize) Estimate an initial output buffer size that balances memory conservation with the risk of a resize for encoding operations. Refines Codec.averageEncodeSize |
decodeBid | Source Codeshared actual Integer decodeBid({Character*} sample) The certainty that that the given A number 1 or greater indicates that (based on the sample at least) the input should decode without error. The higher the number is beyond 1, the more appropriate this codec is likely to be. Refines IncrementalCodec.decodeBid |
encodeBid | Source Codeshared actual Integer encodeBid({Character*} sample) The certainty that that the given A number 1 or greater indicates that (based on the sample at least) the input should encode without error. The higher the number is beyond 1, the more appropriate this codec is likely to be. Refines IncrementalCodec.encodeBid |
maximumDecodeSize | Source Codeshared actual Integer maximumDecodeSize(Integer inputSize) Determine the largest size an decoding output buffer needs to be. Refines Codec.maximumDecodeSize |
maximumEncodeSize | Source Codeshared actual Integer maximumEncodeSize(Integer inputSize) Determine the largest size an encoding output buffer needs to be. Refines Codec.maximumEncodeSize |
pieceDecoder | Source Codeshared actual PieceConvert<Character,Character> pieceDecoder(ErrorStrategy error) Decodes one output piece to zero or more input pieces. This is mostly intended for refinement by subtypes. Higher level decode methods are provided for general use. Refines IncrementalCodec.pieceDecoder |
pieceEncoder | Source Codeshared actual PieceConvert<Character,Character> pieceEncoder(ErrorStrategy error) Encodes one input piece to zero or more output pieces. This is mostly intended for refinement by subtypes. Higher level encode methods are provided for general use. Refines IncrementalCodec.pieceEncoder |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: CharacterToCharacterCodec |
Methods inherited from: Codec |
Methods inherited from: IncrementalCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle> |
Methods inherited from: StatelessCodec<ToMutable,ToImmutable,ToSingle,FromMutable,FromImmutable,FromSingle> |