Interface Encoder

    • Method Detail

      • objectToString

        void objectToString​(java.io.Writer out,
                            XMLSerializationContext context)
                     throws java.io.IOException
        Encode the object as character data by writing it to the provided Writer.
        Throws:
        java.io.IOException
      • objectToBinary

        void objectToBinary​(java.io.DataOutput out,
                            XMLSerializationContext context,
                            StringEncodingTable stringTable)
                     throws java.io.IOException
        Encode the object as binary data by writing it to the provided DataOutput. It is preferrable not to write String data to the DataOutput, but instead use the string table to get an ID for the string, and write the ID instead. All strings that are given IDs will be written in a shared string pool.
        Throws:
        java.io.IOException