public interface Asn1TypeIF
Modifier and Type | Method and Description |
---|---|
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(Asn1MderDecodeBuffer buffer)
This method decodes this object's data from an MDER encoding.
|
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(Asn1MderOutputStream buffer)
This method encodes this object's data to an MDER encoding.
|
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.
|
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 |
print(java.io.PrintWriter 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 |
print(java.lang.StringBuilder out,
java.lang.String varName,
int level)
This method declaration is the signature of the standard print
to string method used to print the contents of the object representing
the ASN.1 type.
|
void |
setOpenType()
Sets open type mode for XML encoding/decoding.
|
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 objectAsn1Exception
java.io.IOException
void encode(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- PER Encode message buffer objectAsn1Exception
java.io.IOException
void encode(Asn1XerEncoder buffer) throws Asn1Exception, java.io.IOException
buffer
- XER Encode message buffer objectjava.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 itemjava.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 sourcejava.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 objectjava.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 tagAsn1Exception
void setOpenType()
boolean isOpenType()
void decode(Asn1MderDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
void encode(Asn1MderOutputStream buffer) throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
void encode(Asn1BerOutputStream out, boolean explicit) throws Asn1Exception, java.io.IOException
out
- BER Output Stream objectexplicit
- Flag indicating explicit tagging should be donejava.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 objectjava.io.IOException
- Any exception thrown by the Asn1PerOutputStream.Asn1Exception
- Thrown, if operation is failed.void print(java.io.PrintWriter out, java.lang.String varName, int level)
out
- Output print writervarName
- Name of the variable being printedlevel
- Indentation levelvoid print(java.io.PrintStream out, java.lang.String varName, int level)
out
- Output print streamvarName
- Name of the variable being printedlevel
- Indentation levelvoid print(java.lang.StringBuilder out, java.lang.String varName, int level)
out
- Output string buildervarName
- Name of the variable being printedlevel
- Indentation level