|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Asn1TypeIF
This is the base interface for all ASN.1 built-in types.
| Method Summary | |
|---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) decode method. |
void |
decode(Asn1PerDecodeBuffer buffer)
This method declaration is the signature of the standard Packed Encoding Rules (PER) decode method. |
void |
decode(java.lang.Object reader,
java.io.InputStream byteStream)
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method. |
void |
decode(java.lang.Object reader,
java.lang.String xmlURI)
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method. |
void |
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes the XML content of a simple type. |
int |
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) encode method. |
void |
encode(Asn1BerOutputStream out,
boolean explicit)
This method declaration is the signature of the streaming oriented BER encode method. |
void |
encode(Asn1PerEncodeBuffer buffer)
This method declaration is the signature of the standard Packed Encoding Rules (PER) encode method. |
void |
encode(Asn1PerOutputStream out)
This method declaration is the signature of the streaming oriented PER encode method. |
void |
encode(Asn1XerEncoder buffer)
This method declaration is the signature of the standard XML Encoding Rules (XER) encode method. |
void |
encode(Asn1XerEncoder buffer,
java.lang.String elemName)
This method declaration is the signature of the standard XML Encoding Rules (XER) encode method. |
void |
encode(Asn1XmlEncoder buffer)
This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd). |
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd). |
boolean |
isOpenType()
Returns open type mode for XML encoding/decoding. |
void |
print(java.io.PrintStream out,
java.lang.String varName,
int level)
This method declaration is the signature of the standard print method used to print the contents of the object representing the ASN.1 type. |
void |
setOpenType()
Sets open type mode for XML encoding/decoding. |
| Method Detail |
|---|
void decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
throws Asn1Exception,
java.io.IOException
buffer - Decode message buffer objectexplicit - Flag indicating explicit tag should be parsed
from the encoded type.implicitLength - Length of the contents field (only required
if explicit is false).
Asn1Exception
java.io.IOException
int encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
throws Asn1Exception
buffer - Encode message buffer objectexplicit - Flag indicating explicit tag should be added
to the encoded type.
Asn1Exception
void decode(Asn1PerDecodeBuffer buffer)
throws Asn1Exception,
java.io.IOException
buffer - PER Encode message buffer object
Asn1Exception
java.io.IOException
void encode(Asn1PerEncodeBuffer buffer)
throws Asn1Exception,
java.io.IOException
buffer - PER Encode message buffer object
Asn1Exception
java.io.IOException
void encode(Asn1XerEncoder buffer)
throws Asn1Exception,
java.io.IOException
buffer - XER Encode message buffer object
java.io.IOException - Any exception thrown by the underlying stream.
Asn1Exception - Thrown, if operation is failed.
void encode(Asn1XerEncoder buffer,
java.lang.String elemName)
throws Asn1Exception,
java.io.IOException
buffer - XER Encode message buffer objectelemName - XML element name of item
java.io.IOException - Any exception thrown by the underlying stream.
Asn1Exception - Thrown, if operation is failed.
void decode(java.lang.Object reader,
java.lang.String xmlURI)
throws Asn1Exception,
java.io.IOException
reader - XML reader objectxmlURI - URI of a source
java.io.IOException - An IO exception from the parser, possibly from a
byte stream or character stream supplied by the
application.
Asn1Exception - Thrown, if operation is failed.
void decode(java.lang.Object reader,
java.io.InputStream byteStream)
throws Asn1Exception,
java.io.IOException
reader - XML reader objectbyteStream - Input byte stream object
java.io.IOException - An IO exception from the parser, possibly from a
byte stream or character stream supplied by the
application.
Asn1Exception - Thrown, if operation is failed.
void decodeXML(java.lang.String buffer,
java.lang.String attrs)
throws Asn1Exception
buffer - String containing data to be decodedattrs - Attributes string from element tag
Asn1Exception
void encode(Asn1XmlEncoder buffer)
throws Asn1Exception,
java.io.IOException
buffer - XER Encode message buffer object
java.io.IOException - Any exception thrown by the underlying stream.
Asn1Exception - Thrown, if operation is failed.
void encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
throws Asn1Exception,
java.io.IOException
buffer - XER Encode message buffer objectelemName - XML element name of itemnsPrefix - Element namespace prefix value
java.io.IOException - Any exception thrown by the underlying stream.
Asn1Exception - Thrown, if operation is failed.void setOpenType()
boolean isOpenType()
void encode(Asn1BerOutputStream out,
boolean explicit)
throws Asn1Exception,
java.io.IOException
out - BER Output Stream objectexplicit - Flag indicating explicit tagging should be done
java.io.IOException - Any exception thrown by the underlying OutputStream.
Asn1Exception - Thrown, if operation is failed.
void encode(Asn1PerOutputStream out)
throws Asn1Exception,
java.io.IOException
out - BER Output Stream object
java.io.IOException - Any exception thrown by the Asn1PerOutputStream.
Asn1Exception - Thrown, if operation is failed.
void print(java.io.PrintStream out,
java.lang.String varName,
int level)
out - Output print streamvarName - Name of the variable being printedlevel - Indentation level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||