public interface StringIdLookupIfc
Modifier and Type | Method and Description |
---|---|
byte |
lookupByte(java.lang.String attrId)
Retrieves an byte field value with the specified id
|
void |
lookupDataBytes(java.lang.String attrId,
byte[] barr,
int barrOffset)
Retrieves the data stored with a specified id by storing the bytes
into a given byte array at the specified offset.
|
int |
lookupDataLength(java.lang.String attrId)
Returns the length of data stored with a specified id expressed
in number of bytes.
|
int |
lookupDataType(java.lang.String attrId)
Retrieves the type of data stored with a specified id
|
double |
lookupDouble(java.lang.String attrId)
Retrieves an double field value with the specified id
|
float |
lookupFloat(java.lang.String attrId)
Retrieves a float value with the specified id
|
int |
lookupInt(java.lang.String attrId)
Retrieves an int field value with the specified id
|
long |
lookupLong(java.lang.String attrId)
Retrieves an long field value with the specified id
|
short |
lookupShort(java.lang.String attrId)
Retrieves an short field value with the specified id
|
java.lang.String |
lookupString(java.lang.String attrId)
Retrieves a String object with the specified id
Use lookupDataBytes() instead, if applicable.
|
void |
outputDataBytes(java.lang.String attrId,
java.io.OutputStream os)
Writes the data bytes of a given attribute into a specified
output-stream.
|
int lookupDataType(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.int lookupDataLength(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.void lookupDataBytes(java.lang.String attrId, byte[] barr, int barrOffset)
attrId
- String identifier of the desired fieldbarr
- byte array to store the looked up databarrOffset
- offset into the barr array where data will be storedNonExistentAttributeException
- if there is no attribute with the given attribute id.byte lookupByte(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a byte.int lookupInt(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a int.short lookupShort(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a short.long lookupLong(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a long.float lookupFloat(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a float.double lookupDouble(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a double.java.lang.String lookupString(java.lang.String attrId)
attrId
- String identifier of the desired fieldNonExistentAttributeException
- if there is no attribute with the given attribute id.InvalidAttributeTypeException
- if the attribute stored with the given attribute id is not a String.void outputDataBytes(java.lang.String attrId, java.io.OutputStream os) throws java.io.IOException
attrId
- String identifier of the desired fieldos
- OutoutStream to which data should be written to.NonExistentAttributeException
- if there is no attribute with the given attribute id.java.io.IOException