public class BinaryWriter extends java.lang.Object implements SerializationWriter
Modifier and Type | Field and 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 and Description |
---|
BinaryWriter(java.io.OutputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
writeElement(XMLSerializationContext context,
Element baseElement)
Called once with the base element of the XML tree to write it to the underlying stream.
|
public static final java.util.UUID MAGIC_NUMBER
public static final int VERSION
Version 1: initial. Version 2: String table changed to accommodate strings over 65k.
public static final byte REF_ELM_FLG
public static final byte HAS_SUBNAME_FLG
public static final byte HAS_REF_FLG
public static final byte HAS_ATTRIB_FLG
public static final byte HAS_CHILDREN_FLG
public static final byte HAS_BODY_FLG
public void writeElement(XMLSerializationContext context, Element baseElement) throws java.io.IOException
SerializationWriter
writeElement
in interface SerializationWriter
java.io.IOException