public interface Asn1XmlXerEncoder
| Modifier and Type | Method and Description |
|---|---|
void |
copy(byte value)
This method is used to copy a single byte to the encode buffer or stream.
|
void |
copy(byte[] value)
This method copies multiple bytes to the encode buffer or stream.
|
void |
copy(byte[] value,
int off,
int len)
This method copies multiple bytes to the encode buffer or stream.
|
void |
copy(java.lang.String value)
This method copies a character string to the encode buffer or stream.
|
void |
decrLevel()
This method decrements the element nesting level counter.
|
void |
encodeBinStrValue(byte[] bits,
int nbits)
This method encodes XML binary string data
|
void |
encodeData(java.lang.String value)
This method encodes XML string data
|
void |
encodeEndDocument()
This method encodes standard trailor information at the end
of the XML document.
|
void |
encodeHexStrValue(byte[] data)
This method encodes XML hexadecimal string data
|
void |
encodeNamedValueElement(java.lang.String elemName)
This method encodes an XML named value element tag.
|
void |
encodeStartDocument()
This method encodes standard header information at the beginning
of the XML document.
|
Asn1Context |
getContext()
Return the context for this encoder.
|
void |
incrLevel()
This method increments the element nesting level counter.
|
void |
indent()
This methods indents by adding a new-line followed by whitespace
corresponding to the current nesting level to the encode buffer.
|
boolean |
isCanonical()
Return true if the encoder has been put into canonical mode.
|
void copy(byte value) throws java.io.IOException
value - The byte value to copyjava.io.IOException - If I/O error occurs.void copy(byte[] value)
throws java.io.IOException,
Asn1Exception
value - Array of bytes to copy to the encode bufferjava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void copy(byte[] value,
int off,
int len)
throws java.io.IOException,
Asn1Exception
value - Array of bytes to copy to the encode bufferoff - Starting offset in arraylen - The length to be encodedjava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void copy(java.lang.String value)
throws java.io.IOException,
Asn1Exception
value - The string value to copyjava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void incrLevel()
void decrLevel()
void encodeData(java.lang.String value)
throws java.io.IOException,
Asn1Exception
value - String value to encodejava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void encodeBinStrValue(byte[] bits,
int nbits)
throws java.io.IOException,
Asn1Exception
bits - Bit string to encodejava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void encodeHexStrValue(byte[] data)
throws java.io.IOException,
Asn1Exception
data - Data to encodejava.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void encodeEndDocument()
throws java.io.IOException,
Asn1Exception
java.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void encodeStartDocument()
throws java.io.IOException,
Asn1Exception
java.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.void encodeNamedValueElement(java.lang.String elemName)
throws java.io.IOException,
Asn1Exception
elemName - The name of element.java.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.Asn1Context getContext()
void indent()
throws java.io.IOException,
Asn1Exception
java.io.IOException - If I/O error occurs.Asn1Exception - Thrown, if operation is failed.boolean isCanonical()