|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.decoder.DecodingStream
public class DecodingStream
Decodes values of ASN.1 types represented in a conceptual Tag - Length - Value (TLV) format under the Distinguished Encoding Rules (DER) of ASN.1.
| Constructor Summary | |
|---|---|
DecodingStream(java.io.InputStream s)
Constructor for DecodingStream with
input stream parameter. |
|
| Method Summary | |
|---|---|
DecodedTLV |
decode()
Decode a tag/length/value. |
DecodedTLV |
decode(TagList tags)
Match each Tag in a TagList against the input stream. |
int |
getBytesRead()
Returns the current stream of bytes that have been read. |
DecodedTLV |
peekNextTagLength()
Peeks at the next TLV in the input stream. |
void |
readBytes(byte[] buffer)
Read buffer.length raw bytes from the input stream into the buffer. |
byte[] |
readTLV()
Reads a TLV from the input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecodingStream(java.io.InputStream s)
DecodingStream with
input stream parameter.
s - an input stream| Method Detail |
|---|
public DecodedTLV decode(TagList tags)
throws java.io.IOException
tags - a list of one or more tags (T)
null or a DecodedTLV
java.io.IOException
public DecodedTLV decode()
throws java.io.IOException
null or a DecodedTLV
java.io.IOException
public DecodedTLV peekNextTagLength()
throws java.io.IOException
DecodedTLV
java.io.IOException
public byte[] readTLV()
throws java.io.IOException
java.io.IOException
public void readBytes(byte[] buffer)
throws java.io.IOException
buffer - input stream storage
java.io.IOExceptionpublic int getBytesRead()
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||