|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--opencard.opt.iso.fs.CardFileInputStream
CardFileInputStream together with the accompanying CardFileOutputStream provides access to a CardFile via the familiar Java input/output stream mechanism.
This class only works on transparent files.
CardFile
,
CardFileOutputStream
,
InputStream
Constructor Summary | |
CardFileInputStream(CardFile file)
Instantiate an input stream using the specified CardFile object. |
Method Summary | |
int |
available()
Return the number of byte available for reading. |
void |
close()
Close the input stream and release any resources associated with the stream. |
protected void |
finalize()
Close the stream at garbage collection time. |
int |
read()
Read a byte of data. |
int |
read(byte[] b)
Read data into a byte array. |
int |
read(byte[] b,
int offset,
int length)
Reads data into a slice of a byte array. |
long |
skip(long n)
Skips n bytes of input. |
Methods inherited from class java.io.InputStream |
mark,
markSupported,
reset |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CardFileInputStream(CardFile file) throws java.io.IOException, opencard.core.terminal.CardTerminalException, CardIOException
file
- The CardFile object to base the input stream on.Method Detail |
public int available() throws java.io.IOException, opencard.core.terminal.CardTerminalException
public void close() throws java.io.IOException, opencard.core.terminal.CardTerminalException
public int read() throws java.io.IOException, opencard.core.terminal.CardTerminalException
public int read(byte[] b) throws java.io.IOException, opencard.core.terminal.CardTerminalException
b
- The buffer to use.public int read(byte[] b, int offset, int length) throws java.io.IOException, opencard.core.terminal.CardTerminalException
b
- The buffer into which the data is readoffset
- The start offset of the datalength
- The maximum number of bytes to be readpublic long skip(long n) throws java.io.IOException, opencard.core.terminal.CardTerminalException
n
- The number of bytes to be skippedprotected void finalize() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |