com.ibm.opencard.dictionary
Class Item
java.lang.Object
|
+--com.ibm.opencard.dictionary.Item
- public class Item
- extends java.lang.Object
Item represents an item entry contained in an AgentDictionary.
Item objects are only instanciated by the itemEntry method of
AgentDictionary (or derived classes).
- Version:
- $Id: Item.java,v 1.1 1999/12/02 16:06:03 damke Exp $
- See Also:
opencard.core.util.TLV,
com.ibm.opencard.dictionary.AgentDictionary
|
Method Summary |
int |
accessMode()
Return the access mode of this item. |
java.lang.String |
aliasName()
Return the alias name of this item. |
int |
offset()
Return the offset of this item. |
byte[] |
path()
Return the path of this item. |
int |
recordMode()
Return the record mode of this item. |
int |
recordNumber()
Return the record number of this item. |
int |
size()
Return the size of this item. |
int |
type()
Return the type of this item. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EF
public static final int EF
- Item belongs to an elementary file
DF
public static final int DF
- Item belongs to a dedicated file
ACCESS_UNDEFINED
public static final int ACCESS_UNDEFINED
- Access is undefined
ACCESS_BINARY
public static final int ACCESS_BINARY
- Access only possible in binary mode
ACCESS_RECORD
public static final int ACCESS_RECORD
- Access only possible in record mode
ACCESS_SELECT
public static final int ACCESS_SELECT
- Access only possible in select mode
ACCESS_TAGGED
public static final int ACCESS_TAGGED
- Access only possible in tagged mode
RECORD_UNDEFINED
public static final int RECORD_UNDEFINED
- No record mode defined
RECORD_FIRST
public static final int RECORD_FIRST
- Access first record
RECORD_LAST
public static final int RECORD_LAST
- Access last record
RECORD_NEXT
public static final int RECORD_NEXT
- Access next record
RECORD_PREVIOUS
public static final int RECORD_PREVIOUS
- Access previous record
RECORD_ABSOLUTE
public static final int RECORD_ABSOLUTE
- Access record using absolute record number
RECORD_NUMBER_UNDEFINED
public static final int RECORD_NUMBER_UNDEFINED
- This value indicates an undefined record number
accessMode
public int accessMode()
- Return the access mode of this item.
- Returns:
- Item.ACCESS_BINARY for Transparent Files,
Item.ACCESS_RECORD for Record Files.
type
public int type()
- Return the type of this item.
- Returns:
- Item.DF for Dedicated Files,
Item.EF for Elementary Files.
path
public byte[] path()
- Return the path of this item.
- Returns:
- Item path
aliasName
public java.lang.String aliasName()
- Return the alias name of this item.
- Returns:
- alias name
size
public int size()
- Return the size of this item.
- Returns:
- The length of this Item in bytes.
offset
public int offset()
- Return the offset of this item.
- Returns:
- The offset of this Item.
recordMode
public int recordMode()
- Return the record mode of this item.
- Returns:
- The record mode of this Item or RECORD_UNDEFINED if none is
defined.
recordNumber
public int recordNumber()
- Return the record number of this item.
- Returns:
- The record number of this Item or RECORD_NUMBER_UNDEFINED
if none is defined.
|