JMRTD 0.4.5

net.sourceforge.scuba.smartcards
Class CardFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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)

Constructor Summary
CardFileInputStream(int maxBlockSize, FileSystemStructured fs)
           
 
Method Summary
 int available()
           
 int getFileLength()
          Gets the length of the underlying card file.
 int getFilePos()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
close, read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardFileInputStream

public CardFileInputStream(int maxBlockSize,
                           FileSystemStructured fs)
                    throws CardServiceException
Throws:
CardServiceException
Method Detail

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()

JMRTD 0.4.5