|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.opt.iso.fs.CardRandomAccess
public abstract class CardRandomAccess
Superclass for both CardRandomAccess classes.
CardRandomRecordAccess
,
CardRandomByteAccess
Field Summary | |
---|---|
protected CardFile |
file
|
protected int |
filePointer
|
protected FileAccessCardService |
fileSystem
|
protected boolean |
open
|
protected boolean |
writeAccess
|
Constructor Summary | |
---|---|
CardRandomAccess(CardFile scFile,
java.lang.String accessMode)
Instantiate a CardRandomAccess object. |
Method Summary | |
---|---|
void |
close()
Close the file. |
protected void |
finalize()
Free up all resources at garbage collection time. |
void |
open()
(Re-)open the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CardFile file
protected FileAccessCardService fileSystem
protected int filePointer
protected boolean writeAccess
protected boolean open
Constructor Detail |
---|
public CardRandomAccess(CardFile scFile, java.lang.String accessMode) throws CardTerminalException, java.io.IOException
scFile
- The CardFile object that represents the file
on the smart card.accessMode
- Specifies whether the card is accessed for read "r" or
read and write "rw".
CardTerminalException
- Thrown when the smart card has been removed.
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException, CardTerminalException
java.io.IOException
- Thrown if an I/O error has occurred.
CardTerminalException
- Thrown when the smart card has been removed.public void open() throws java.io.IOException, CardTerminalException
java.io.IOException
- Thrown if an I/O error has occured.
CardTerminalException
- Thrown when the smart card has been removed.protected void finalize() throws java.io.IOException
finalize
in class java.lang.Object
java.io.IOException
- An I/O error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |