opencard.opt.iso.fs
Class CardFileReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.InputStreamReader
              |
              +--opencard.opt.iso.fs.CardFileReader

public class CardFileReader
extends java.io.InputStreamReader

CardFileReader is a subclass of InputStreamReader that can be used to read text data from a CardFile. The constructor of this class assumes that the default character encoding and the default byte-buffer size are appropriate.

See Also:
java.io.FileReader, CardFile, CardFileInputStream

Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CardFileReader(CardFile file)
          Instantiate a CardFileReader for the specified CardFile object.
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardFileReader

public CardFileReader(CardFile file)
               throws java.io.IOException,
                      opencard.core.terminal.CardTerminalException
Instantiate a CardFileReader for the specified CardFile object.

Parameters:
file - The CardFile object to read from.
Throws:
java.io.IOException - Thrown if the file is not found or file type does not match.
opencard.core.terminal.CardTerminalException - Thrown when the smart card has been removed.