com.ibm.opencard.dictionary
Class Dictionary
java.lang.Object
|
+--com.ibm.opencard.dictionary.Dictionary
- public abstract class Dictionary
- extends java.lang.Object
A Dictionary contains information required by the IBM CardAgent.
for accessing files, e.g. file paths, access conditions, offsets and sizes.
AgentDictionary is the abstract base class of all dictionaries.
Every individual concrete dictionary is a distinct subclass of
AgentDictionary.
Instances are not created. Rather the class has class methods only.
- Version:
- $Id: Dictionary.java,v 1.1 1999/12/02 16:06:02 damke Exp $
|
Method Summary |
abstract TLVBuffer |
buffer()
Return a TLVBuffer containing the dictionary structure. |
Item |
itemEntry(byte[] path)
Return the item entry for the specified item path. |
Item |
itemEntry(java.lang.String alias)
Return the item entry for the specified alias name. |
Item |
itemEntryForRawAlias(byte[] alias)
Return the item entry for the specified alias name. |
java.util.Enumeration |
items()
|
protected static TLVBuffer |
restore(java.lang.String fileSpec)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
dictionaryTLV
protected TLV dictionaryTLV
Dictionary
public Dictionary()
buffer
public abstract TLVBuffer buffer()
- Return a TLVBuffer containing the dictionary structure.
- Returns:
- A TLV buffer containing the dictionary
items
public java.util.Enumeration items()
itemEntry
public Item itemEntry(java.lang.String alias)
- Return the item entry for the specified alias name.
- Parameters:
alias - The alias name of the item entry to be returned.- Returns:
- A object containing the item entry, or null if no matching
entry could be found.
itemEntryForRawAlias
public Item itemEntryForRawAlias(byte[] alias)
- Return the item entry for the specified alias name.
- Parameters:
alias - The alias name of the item entry to be returned.- Returns:
- An Item object containing the item entry, or null if no matching
entry could be found.
itemEntry
public Item itemEntry(byte[] path)
- Return the item entry for the specified item path.
- Parameters:
itemPath - The itemPath of the item entry to be returned.- Returns:
- A TLV object containing the item entry, or null if no matching
entry could be found.
restore
protected static TLVBuffer restore(java.lang.String fileSpec)
throws java.io.IOException
|