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:

  1. This is currently implemented in the binary package ( with the exception of encodeBase64 and encodeBase64Chunked
  2. The language package is somewhat messy in that there is no real standard for static encode method.

CodecProjectPages/CodecNaming (last edited 2009-09-20 23:31:54 by localhost)