use the core XmlEncoder class inside XmlDecoder
make the Codes class finall