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 byte
HAS_ATTRIB_FLG
static byte
HAS_BODY_FLG
static byte
HAS_CHILDREN_FLG
static byte
HAS_REF_FLG
static byte
HAS_SUBNAME_FLG
static java.util.UUID
MAGIC_NUMBER
16 bytes that serve as the identifier of a binary encoded serialized object graph.static byte
REF_ELM_FLG
static int
VERSION
Version 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 void
writeElement(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:SerializationWriter
Called once with the base element of the XML tree to write it to the underlying stream.- Specified by:
writeElement
in interfaceSerializationWriter
- Throws:
java.io.IOException
-
-