Class GeneralPathDelegate.GeneralPathEncoder

  • All Implemented Interfaces:
    Encoder
    Enclosing class:
    GeneralPathDelegate

    public static class GeneralPathDelegate.GeneralPathEncoder
    extends java.lang.Object
    implements Encoder
    • Field Detail

      • SEG_TYPES

        public static final java.lang.String[] SEG_TYPES
    • Constructor Detail

      • GeneralPathEncoder

        public GeneralPathEncoder​(java.awt.geom.GeneralPath path)
    • 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