A naming proposal for Codec ( from Siege )
class Foo implements BinaryEncoder, BinaryDecoder {
Foo() // constructor
encode(Object):Object
decode(Object):Object
{{{ encode(byte[]):byte[]
decode(byte[]):byte[]
static encodeFoo(byte[]):byte[] //or fooEncode
static decodeFoo(byte[]):byte[] //or fooDecode
} notes:
- This is currently implemented in the binary package ( with the exception of encodeBase64 and encodeBase64Chunked
- The language package is somewhat messy in that there is no real standard for static encode method.