Public Member Functions | |
GenericXMLEncoder (XMLDictionary dictionary) | |
void | writeStartElement (String tag) throws ContentEncodingException |
Writes a start element tag in the format defined by this codec to the stream. | |
void | writeStartElement (long tag) throws ContentEncodingException |
Writes a start element tag in the format defined by this codec to the stream. | |
void | writeElement (String tag, String utf8Content) throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec. | |
void | writeElement (long tag, String utf8Content) throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec. | |
void | writeElement (String tag, String utf8Content, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec. | |
void | writeElement (long tag, String utf8Content, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec. | |
void | writeElement (String tag, byte[] binaryContent) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (long tag, byte[] binaryContent) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (String tag, byte[] binaryContent, int offset, int length) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (long tag, byte[] binaryContent, int offset, int length) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (String tag, byte[] binaryContent, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (long tag, byte[] binaryContent, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (String tag, byte[] binaryContent, int offset, int length, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (long tag, byte[] binaryContent, int offset, int length, TreeMap< String, String > attributes) throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec. | |
void | writeElement (String tag, long value) throws ContentEncodingException |
Writes a number to the stream formatted according to this codec. | |
void | writeElement (long tag, long value) throws ContentEncodingException |
Writes a number to the stream formatted according to this codec. | |
Protected Attributes | |
OutputStream | _ostream = null |
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeStartElement | ( | String | tag | ) | throws ContentEncodingException |
Writes a start element tag in the format defined by this codec to the stream.
tag | the element start tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeStartElement | ( | long | tag | ) | throws ContentEncodingException |
Writes a start element tag in the format defined by this codec to the stream.
tag | the element start tag value defined by the dictionary, to skip string processing. |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
String | utf8Content | |||
) | throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec.
tag | start tag to use | |
utf8Content | the string data to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
String | utf8Content | |||
) | throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec.
tag | start tag to use | |
utf8Content | the string data to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
String | utf8Content, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec.
tag | start tag to use | |
utf8Content | the string data to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
String | utf8Content, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a UTF-8 encoded string to the stream formatted according to this codec.
tag | start tag to use | |
utf8Content | the string data to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
byte[] | binaryContent | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
byte[] | binaryContent | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
byte[] | binaryContent, | |||
int | offset, | |||
int | length | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
offset | the offset into binaryContent at which to start | |
length | the number of bytes of binaryContent to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
byte[] | binaryContent, | |||
int | offset, | |||
int | length | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
offset | the offset into binaryContent at which to start | |
length | the number of bytes of binaryContent to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
byte[] | binaryContent, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
Reimplemented in org.ccnx.ccn.impl.encoding.TextXMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
byte[] | binaryContent, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
byte[] | binaryContent, | |||
int | offset, | |||
int | length, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
offset | the offset into binaryContent at which to start | |
length | the number of bytes of binaryContent to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
Reimplemented in org.ccnx.ccn.impl.encoding.TextXMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
byte[] | binaryContent, | |||
int | offset, | |||
int | length, | |||
TreeMap< String, String > | attributes | |||
) | throws ContentEncodingException |
Writes a binary element to the stream formatted according to this codec.
tag | start tag to use | |
binaryContent | the binary data to encode | |
offset | the offset into binaryContent at which to start | |
length | the number of bytes of binaryContent to encode | |
attributes | the XML attributes to add to this tag |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | String | tag, | |
long | value | |||
) | throws ContentEncodingException |
Writes a number to the stream formatted according to this codec.
tag | start tag to use | |
value | the number to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.
void org.ccnx.ccn.impl.encoding.GenericXMLEncoder.writeElement | ( | long | tag, | |
long | value | |||
) | throws ContentEncodingException |
Writes a number to the stream formatted according to this codec.
tag | start tag to use | |
value | the number to encode |
ContentEncodingException | if there is an error encoding or writing the content |
Implements org.ccnx.ccn.impl.encoding.XMLEncoder.