|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.datatype.INT32
A representation of a rpm 32 byte integer array data object
Constructor Summary | |
(package private) |
INT32(int[] data)
|
Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
int[] |
getData()
Get the rpm int32 array as a java int 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 INT32 |
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 |
INT32(int[] data)
Method Detail |
public int[] getData()
public java.lang.Object getDataObject()
DataTypeIf
getDataObject
in interface DataTypeIf
public RPMIndexType getType()
DataTypeIf
getType
in interface DataTypeIf
public static INT32 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 |