|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
net.sourceforge.scuba.tlv.BERTLVInputStream
public class BERTLVInputStream
TLV input stream.
| Constructor Summary | |
|---|---|
BERTLVInputStream(InputStream in)
Constructs a new TLV stream based on another stream. |
|
| Method Summary | |
|---|---|
int |
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
void |
close()
Closes this input stream. |
void |
mark(int readLimit)
Marks the underlying input stream if supported. |
boolean |
markSupported()
Whether marking and resetting are supported. |
int |
read()
Reads the next byte of data from the input stream. |
int |
readLength()
Reads a length. |
int |
readTag()
Reads a tag. |
byte[] |
readValue()
Reads a value. |
void |
reset()
Resets the underlying input stream if supported. |
long |
skip(long n)
Attempts to skip over n bytes. |
void |
skipToTag(int searchTag)
Skips in this stream until a given tag is found (depth first). |
String |
toString()
|
| Methods inherited from class java.io.InputStream |
|---|
read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BERTLVInputStream(InputStream in)
in - a TLV object| Method Detail |
|---|
public int readTag()
throws IOException
IOException - if reading goes wrong
public int readLength()
throws IOException
IOException - if reading goes wrong
public byte[] readValue()
throws IOException
IOException - if reading goes wrong
public void skipToTag(int searchTag)
throws IOException
searchTag - the tag to search for
IOException
public int available()
throws IOException
available in class InputStreamIOException - if something goes wrong
public int read()
throws IOException
read in class InputStreamIOException - if reading goes wrong
public long skip(long n)
throws IOException
n bytes.
skip in class InputStreamIOException - if something goes wrongpublic void mark(int readLimit)
mark in class InputStreamreadLimit - limit for markingpublic boolean markSupported()
markSupported in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOException - if something goes wrong
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException - if something goes wrongpublic String toString()
toString in class Object
|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||