Class BinaryWriter
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.xmlserialization.serialization.BinaryWriter
 
- 
- All Implemented Interfaces:
- SerializationWriter
 
 public class BinaryWriter extends java.lang.Object implements SerializationWriter 
- 
- 
Field SummaryFields Modifier and Type Field Description static byteHAS_ATTRIB_FLGstatic byteHAS_BODY_FLGstatic byteHAS_CHILDREN_FLGstatic byteHAS_REF_FLGstatic byteHAS_SUBNAME_FLGstatic java.util.UUIDMAGIC_NUMBER16 bytes that serve as the identifier of a binary encoded serialized object graph.static byteREF_ELM_FLGstatic intVERSIONVersion number for the binary serialization.
 - 
Constructor SummaryConstructors Constructor Description BinaryWriter(java.io.OutputStream stream)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteElement(XMLSerializationContext context, Element baseElement)Called once with the base element of the XML tree to write it to the underlying stream.
 
- 
- 
- 
Field Detail- 
MAGIC_NUMBERpublic static final java.util.UUID MAGIC_NUMBER 16 bytes that serve as the identifier of a binary encoded serialized object graph.
 - 
VERSIONpublic static final int VERSION Version number for the binary serialization. Version history:Version 1: initial. Version 2: String table changed to accommodate strings over 65k. - See Also:
- Constant Field Values
 
 - 
REF_ELM_FLGpublic static final byte REF_ELM_FLG - See Also:
- Constant Field Values
 
 - 
HAS_SUBNAME_FLGpublic static final byte HAS_SUBNAME_FLG - See Also:
- Constant Field Values
 
 - 
HAS_REF_FLGpublic static final byte HAS_REF_FLG - See Also:
- Constant Field Values
 
 - 
HAS_ATTRIB_FLGpublic static final byte HAS_ATTRIB_FLG - See Also:
- Constant Field Values
 
 - 
HAS_CHILDREN_FLGpublic static final byte HAS_CHILDREN_FLG - See Also:
- Constant Field Values
 
 - 
HAS_BODY_FLGpublic static final byte HAS_BODY_FLG - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writeElementpublic void writeElement(XMLSerializationContext context, Element baseElement) throws java.io.IOException Description copied from interface:SerializationWriterCalled once with the base element of the XML tree to write it to the underlying stream.- Specified by:
- writeElementin interface- SerializationWriter
- Throws:
- java.io.IOException
 
 
- 
 
-