public abstract class AbstractFileSystemStructured extends Object implements FileSystemStructured
| Modifier and Type | Field and Description |
|---|---|
static short |
MF_ID |
| Constructor and Description |
|---|
AbstractFileSystemStructured(CardService service) |
AbstractFileSystemStructured(CardService service,
boolean fileInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFileLength() |
short |
getSelectedFID() |
abstract byte[] |
readBinary(int offset,
int length)
Reads a fragment of the currently selected file.
|
void |
selectAID(byte[] aid) |
void |
selectDFRelative(short fid) |
void |
selectEFRelative(short fid) |
void |
selectFile(short fid)
Selects a file.
|
void |
selectMF() |
void |
selectParent() |
void |
selectPath(byte[] path) |
void |
selectPathRelative(byte[] path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectedPathpublic static final short MF_ID
public AbstractFileSystemStructured(CardService service)
public AbstractFileSystemStructured(CardService service, boolean fileInfo)
public int getFileLength()
throws CardServiceException
CardServiceExceptionpublic short getSelectedFID()
public abstract byte[] readBinary(int offset,
int length)
FileSystemStructuredreadBinary in interface FileSystemStructuredoffset - offsetlength - the number of bytes to read (the result may be shorter, though)public void selectFile(short fid)
throws CardServiceException
FileSystemStructuredselectFile in interface FileSystemStructuredfid - indicates which file to selectCardServiceException - in case of errorpublic void selectMF()
throws CardServiceException
CardServiceExceptionpublic void selectParent()
throws CardServiceException
CardServiceExceptionpublic void selectEFRelative(short fid)
throws CardServiceException
CardServiceExceptionpublic void selectDFRelative(short fid)
throws CardServiceException
CardServiceExceptionpublic void selectAID(byte[] aid)
throws CardServiceException
CardServiceExceptionpublic void selectPath(byte[] path)
throws CardServiceException
CardServiceExceptionpublic void selectPathRelative(byte[] path)
throws CardServiceException
CardServiceExceptionCopyright © 2020. All rights reserved.