Class Encoders.LongEncoder

    • Constructor Detail

      • LongEncoder

        public LongEncoder​(java.lang.Long obj)
    • 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.
        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.
        Throws:
        java.io.IOException
      • resetObject

        public void resetObject​(java.lang.Object obj)
        Description copied from interface: ArrayElementEncoder
        Used to re-use this encoder for a different object