Class CursorDelegate.CursorEncoder
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.serialization.delegates.CursorDelegate.CursorEncoder
-
- All Implemented Interfaces:
Encoder
- Enclosing class:
- CursorDelegate
public static class CursorDelegate.CursorEncoder extends java.lang.Object implements Encoder
-
-
Constructor Summary
Constructors Constructor Description CursorEncoder(java.awt.Cursor cursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBinaryLength()Report the number of bytes that a call toEncoder.objectToBinary(DataOutput, XMLSerializationContext, StringEncodingTable)will put on the output streamvoidobjectToBinary(java.io.DataOutput out, XMLSerializationContext context, StringEncodingTable stringTable)Encode the object as binary data by writing it to the provided DataOutput.voidobjectToString(java.io.Writer out, XMLSerializationContext context)Encode the object as character data by writing it to the provided Writer.
-
-
-
Method Detail
-
objectToString
public void objectToString(java.io.Writer out, XMLSerializationContext context) throws java.io.IOExceptionDescription copied from interface:EncoderEncode the object as character data by writing it to the provided Writer.- Specified by:
objectToStringin interfaceEncoder- Throws:
java.io.IOException
-
objectToBinary
public void objectToBinary(java.io.DataOutput out, XMLSerializationContext context, StringEncodingTable stringTable) throws java.io.IOExceptionDescription copied from interface:EncoderEncode 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:
objectToBinaryin interfaceEncoder- Throws:
java.io.IOException
-
getBinaryLength
public int getBinaryLength()
Description copied from interface:EncoderReport the number of bytes that a call toEncoder.objectToBinary(DataOutput, XMLSerializationContext, StringEncodingTable)will put on the output stream- Specified by:
getBinaryLengthin interfaceEncoder
-
-