Class Encoders.SignatureEncoder
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.encoding.Encoders
-
- com.inductiveautomation.ignition.common.xmlserialization.encoding.Encoders.SignatureEncoder
-
- All Implemented Interfaces:
ArrayElementEncoder
,AttributeEncoder
,Encoder
- Enclosing class:
- Encoders
public static class Encoders.SignatureEncoder extends Encoders
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.xmlserialization.encoding.Encoders
Encoders.BoolEncoder, Encoders.ByteEncoder, Encoders.ClassEncoder, Encoders.ColorEncoder, Encoders.DateEncoder, Encoders.DoubleEncoder, Encoders.FloatEncoder, Encoders.IntEncoder, Encoders.LongEncoder, Encoders.QualityCodeEncoder, Encoders.ShortEncoder, Encoders.SignatureEncoder, Encoders.StringEncoder, Encoders.UUIDEncoder
-
-
Constructor Summary
Constructors Constructor Description SignatureEncoder(java.lang.Class[] sig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
classArrayToString(java.lang.Class[] arr, ClassNameResolver aliases)
Generates a method signature stringint
getBinaryLength()
Report the number of bytes that a call toEncoder.objectToBinary(DataOutput, XMLSerializationContext, StringEncodingTable)
will put on the output streamvoid
objectToBinary(java.io.DataOutput out, XMLSerializationContext context, StringEncodingTable stringTable)
Encode the object as binary data by writing it to the provided DataOutput.void
objectToString(java.io.Writer out, XMLSerializationContext context)
Encode the object as character data by writing it to the provided Writer.void
resetObject(java.lang.Object obj)
Used to re-use this encoder for a different object-
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.encoding.Encoders
forBoolean, forByte, forClass, forColor, forDate, forDouble, forFloat, forInt, forLong, forQualityCode, forShort, forSignature, forString, getCodecType
-
-
-
-
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
-
getBinaryLength
public int getBinaryLength()
Description copied from interface:Encoder
Report the number of bytes that a call toEncoder.objectToBinary(DataOutput, XMLSerializationContext, StringEncodingTable)
will put on the output stream
-
resetObject
public void resetObject(java.lang.Object obj)
Description copied from interface:ArrayElementEncoder
Used to re-use this encoder for a different object
-
classArrayToString
public static java.lang.String classArrayToString(java.lang.Class[] arr, ClassNameResolver aliases)
Generates a method signature string
-
-