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 Summary
Fields 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 Summary
Constructors Constructor Description BinaryWriter(java.io.OutputStream stream)
-
Method Summary
All 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_NUMBER
public static final java.util.UUID MAGIC_NUMBER
16 bytes that serve as the identifier of a binary encoded serialized object graph.
-
VERSION
public 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_FLG
public static final byte REF_ELM_FLG
- See Also:
- Constant Field Values
-
HAS_SUBNAME_FLG
public static final byte HAS_SUBNAME_FLG
- See Also:
- Constant Field Values
-
HAS_REF_FLG
public static final byte HAS_REF_FLG
- See Also:
- Constant Field Values
-
HAS_ATTRIB_FLG
public static final byte HAS_ATTRIB_FLG
- See Also:
- Constant Field Values
-
HAS_CHILDREN_FLG
public static final byte HAS_CHILDREN_FLG
- See Also:
- Constant Field Values
-
HAS_BODY_FLG
public static final byte HAS_BODY_FLG
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeElement
public 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 interfaceSerializationWriter- Throws:
java.io.IOException
-
-