Class Encoders
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.encoding.Encoders
- All Implemented Interfaces:
- ArrayElementEncoder,- AttributeEncoder,- Encoder
- Direct Known Subclasses:
- 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
Contains logic to encode various types is either text meant for XML or as binary, and to decode those types.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic AttributeEncoderforBoolean(boolean b) static AttributeEncoderforByte(byte b) static AttributeEncoderstatic AttributeEncoderstatic AttributeEncoderstatic AttributeEncoderforDouble(double d) static AttributeEncoderforFloat(float f) static AttributeEncoderforInt(int i) static AttributeEncoderforLong(long l) static AttributeEncoderforQualityCode(QualityCode code) static AttributeEncoderforShort(short s) static AttributeEncoderforSignature(Class[] array) static AttributeEncoderintReturn the unique code for the type that this encoder encodes.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.xmlserialization.encoding.ArrayElementEncoderresetObjectMethods inherited from interface com.inductiveautomation.ignition.common.xmlserialization.encoding.EncodergetBinaryLength, objectToBinary, objectToString
- 
Constructor Details- 
Encoders
 
- 
- 
Method Details- 
getCodecTypepublic int getCodecType()Description copied from interface:AttributeEncoderReturn the unique code for the type that this encoder encodes. This must be the ordinal() of the corresponding CodecType enum value. This is only used on Encoders for element attributes, because attributes need to be read in with no intervention, so this ID is used to look up the correct decoder. For element bodies, the handler has the chance to instantiate the correct decoder before parsing, so no type code is needed. - Specified by:
- getCodecTypein interface- AttributeEncoder
 
- 
forByte
- 
forShort
- 
forInt
- 
forLong
- 
forFloat
- 
forDouble
- 
forBoolean
- 
forDate
- 
forString
- 
forClass
- 
forSignature
- 
forColor
- 
forQualityCode
 
-