|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.codec.Codec
public abstract class Codec
Models the abstract concept of an ASN.1 codec (coder-decoder), which is an abstract device capable of performing the encoding or decoding transformation of a value of an ASN.1 type.
| Constructor Summary | |
|---|---|
Codec(EncodingRule rule)
Constructor for Codec. |
|
| Method Summary | |
|---|---|
abstract ASN1OpenType |
createOpenType(ASN1Value decodedValue)
|
void |
decode(byte[] in,
ASN1Value out)
Decodes a value of some ASN.1 type. |
void |
decode(java.io.InputStream in,
ASN1Value out)
The decode method with input stream
and ASN.1 value parameters ??? TEXT ???. |
byte[] |
encode(ASN1Value in)
Encodes the value of some ASN.1 type. |
void |
encode(ASN1Value in,
java.io.OutputStream out)
The encode method with ASN.1 value
and output stream parameters ??? TEXT ???. |
protected abstract Decoder |
getDecoder()
|
protected abstract Encoder |
getEncoder()
|
EncodingRule |
getEncodingRule()
The getEncodingRule method gets the current
ASN.1 encoding rule being used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Codec(EncodingRule rule)
Codec.
| Method Detail |
|---|
public EncodingRule getEncodingRule()
getEncodingRule method gets the current
ASN.1 encoding rule being used.
public void encode(ASN1Value in,
java.io.OutputStream out)
throws EncodingException
encode method with ASN.1 value
and output stream parameters ??? TEXT ???.
in - out -
EncodingException
public void decode(java.io.InputStream in,
ASN1Value out)
throws DecodingException
decode method with input stream
and ASN.1 value parameters ??? TEXT ???.
in - out -
DecodingException
public byte[] encode(ASN1Value in)
throws EncodingException
in - an ASN.1 value to be encoded
EncodingException
public void decode(byte[] in,
ASN1Value out)
throws DecodingException
in - input stream bytes to be decodedout - a decoded ASN.1 value
DecodingExceptionprotected abstract Encoder getEncoder()
protected abstract Decoder getDecoder()
public abstract ASN1OpenType createOpenType(ASN1Value decodedValue)
decodedValue -
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||