|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.datatype.INT8
A representation of a rpm 8 byte integer array data object
Constructor Summary | |
(package private) |
INT8(byte[] data)
|
Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
byte[] |
getData()
Get the rpm int8 array as a java byte array |
java.lang.Object |
getDataObject()
Get the data as an object. |
long |
getElementCount()
Returns the number of elements stored in this data type. |
long |
getSize()
Returns the size of this type in the RPM file |
RPMIndexType |
getType()
Get the type of this data object |
boolean |
isArray()
Returns TRUE if this object contains an array or FALSE if it is not an array. |
static INT8 |
readFromStream(java.io.DataInputStream inputStream,
IndexEntry indexEntry)
Constructs a type froma stream |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
INT8(byte[] data)
Method Detail |
public byte[] getData()
public java.lang.Object getDataObject()
DataTypeIf
getDataObject
in interface DataTypeIf
public RPMIndexType getType()
DataTypeIf
getType
in interface DataTypeIf
public static INT8 readFromStream(java.io.DataInputStream inputStream, IndexEntry indexEntry) throws java.io.IOException
inputStream
- An input streamindexEntry
- The index informations
java.io.IOException
- if an I/O error occurs.public boolean isArray()
DataTypeIf
isArray
in interface DataTypeIf
public long getElementCount()
DataTypeIf
getElementCount
in interface DataTypeIf
public long getSize()
DataTypeIf
getSize
in interface DataTypeIf
public java.lang.Object get(int i)
DataTypeIf
get
in interface DataTypeIf
i
- The element number
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |