Class MethodDelegate.MethodEncoder

  • All Implemented Interfaces:
    Encoder
    Enclosing class:
    MethodDelegate

    public static class MethodDelegate.MethodEncoder
    extends java.lang.Object
    implements Encoder
    • Constructor Detail

      • MethodEncoder

        public MethodEncoder​(java.lang.reflect.Method method)
    • Method Detail

      • objectToString

        public void objectToString​(java.io.Writer out,
                                   XMLSerializationContext context)
                            throws java.io.IOException
        Description copied from interface: Encoder
        Encode the object as character data by writing it to the provided Writer.
        Specified by:
        objectToString in interface Encoder
        Throws:
        java.io.IOException
      • objectToBinary

        public void objectToBinary​(java.io.DataOutput out,
                                   XMLSerializationContext context,
                                   StringEncodingTable stringTable)
                            throws java.io.IOException
        Description copied from interface: Encoder
        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.
        Specified by:
        objectToBinary in interface Encoder
        Throws:
        java.io.IOException