|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Asn1XmlXerEncoder
This is a base interface for encoding of ASN.1 messages as XML as specified in the W3C standard. It is implemented by both the Asn1XmlEncodeBuffer and Asn1XmlOutputStream.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void copy(byte value) throws java.io.IOException
value
- The byte value to copy
java.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 buffer
java.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 encoded
java.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 copy
java.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 encode
java.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 encode
java.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 encode
java.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |