net.sourceforge.scuba.smartcards
Class CardFileInputStream
java.lang.Object
java.io.InputStream
net.sourceforge.scuba.smartcards.CardFileInputStream
- All Implemented Interfaces:
- Closeable
public class CardFileInputStream
- extends InputStream
Inputstream for reading files on ISO 7816 file system cards.
- Author:
- Martijn Oostdijk (martijn.oostdijk@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CardFileInputStream
public CardFileInputStream(int maxBlockSize,
FileSystemStructured fs)
throws CardServiceException
- Throws:
CardServiceException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
skip
public long skip(long n)
- Overrides:
skip in class InputStream
available
public int available()
- Overrides:
available in class InputStream
mark
public void mark(int readLimit)
- Overrides:
mark in class InputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class InputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class InputStream
getFileLength
public int getFileLength()
- Gets the length of the underlying card file.
- Returns:
- the length of the underlying card file.
getFilePos
public int getFilePos()