public interface StringIdStoreIfc
Modifier and Type | Method and Description |
---|---|
void |
load(java.lang.String attrId)
Stores a null attrubute (with no data) at the specified id
Stored type is NAR.NULL_TYPE
|
void |
load(java.lang.String attrId,
byte val)
Stores a given integer value at the specified id
Stored type is NAR.BYTE_TYPE
|
void |
load(java.lang.String attrId,
byte[] barr)
Stores a data field given as a byte array at the specified id
Stored type is NAR.BYTE_ARRAY_TYPE
|
void |
load(java.lang.String attrId,
double val)
Stores a given floating point value at the specified id
Stored type is NAR.DOUBLE_TYPE
|
void |
load(java.lang.String attrId,
float val)
Stores a given floating point value at the specified id
Stored type is NAR.FLOAT_TYPE
|
void |
load(java.lang.String attrId,
int val)
Stores a given integer value at the specified id
Stored type is NAR.INT_TYPE
|
void |
load(java.lang.String attrId,
int type,
byte[] barr,
int barrOffset,
int len)
Stores a given value of specified type with the specified id.
|
void |
load(java.lang.String attrId,
long val)
Stores a given integer value at the specified id
Stored type is NAR.LONG_TYPE
|
void |
load(java.lang.String attrId,
short val)
Stores a given integer value at the specified id
Stored type is NAR.SHORT_TYPE
|
void |
load(java.lang.String attrId,
java.lang.String str)
Stores a String object at the specified id
Stored type is NAR.STRING_TYPE
|
void |
loadBigEndian(java.lang.String attrId,
int attrType,
java.io.DataInputStream is)
Stores a numeric primitive, e.g.
|
void |
loadByteArray(java.lang.String attrId,
java.io.InputStream is,
int nbytes)
Stores a given number of bytes of data from a given InputeStream
at the specified id.
|
void |
loadString(java.lang.String attrId,
java.io.Reader rd,
char delimChar)
Stores a String object by reading it in from a given character
Reader.
|
void load(java.lang.String attrId)
attrId
- String identifier for the fieldvoid load(java.lang.String attrId, byte val)
attrId
- String identifier for the fieldval
- byte value to be stored in the given fieldvoid load(java.lang.String attrId, short val)
attrId
- String identifier for the fieldval
- short value to be stored in the given fieldvoid load(java.lang.String attrId, int val)
attrId
- String identifier for the fieldval
- integer value to be stored in the given fieldvoid load(java.lang.String attrId, long val)
attrId
- String identifier for the fieldval
- long value to be stored in the given fieldvoid load(java.lang.String attrId, float val)
attrId
- String identifier for the fieldval
- float value to be stored in the given fieldvoid load(java.lang.String attrId, double val)
attrId
- String identifier for the fieldval
- double value to be stored in the given fieldvoid load(java.lang.String attrId, byte[] barr)
attrId
- String identifier for the fieldbarr
- byte array to be stored in the given fieldvoid load(java.lang.String attrId, java.lang.String str)
attrId
- String identifier for the fieldval
- String object to be stored in the given fieldvoid loadByteArray(java.lang.String attrId, java.io.InputStream is, int nbytes) throws java.io.IOException
attrId
- String identifier for the fieldis
- InputStream from which bytes will be readnbytes
- Number of bytes to be read to create this data itemjava.io.IOException
void loadBigEndian(java.lang.String attrId, int attrType, java.io.DataInputStream is) throws java.io.IOException, NonNumericTypeException
attrId
- String identifier for the fieldattrType
- an integer type id which should be one of
NAR.INT_TYPE, NAR.FLOAT_TYPE, NAR.SHORT_TYPE, etc.dis
- DataInputStream which contains the big-endian number
at the current position of the input-stream.java.io.IOException
NonNumericTypeException
void loadString(java.lang.String attrId, java.io.Reader rd, char delimChar) throws java.io.IOException
attrId
- String identifier for the fieldrd
- A character Reader from which char's are extracted until
a delimChar is seen.delimChar
- byte value of the separation character.java.io.IOException
void load(java.lang.String attrId, int type, byte[] barr, int barrOffset, int len)
attrId
- Identifier for the fieldtype
- Data type for the fieldbarr
- byte array containing the data valuebarrOffset
- offset into the given byte array where field beginslen
- number of bytes occupied by field