|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.datatype.STRING
A representation of a rpm string data object
Constructor Summary | |
(package private) |
STRING(java.lang.String data)
|
Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
java.lang.String |
getData()
Get the rpm string as a java string |
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 STRING |
readFromStream(java.io.DataInputStream inputStream,
IndexEntry indexEntry,
long length)
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 |
STRING(java.lang.String data)
Method Detail |
public java.lang.String getData()
public java.lang.Object getDataObject()
DataTypeIf
getDataObject
in interface DataTypeIf
public RPMIndexType getType()
DataTypeIf
getType
in interface DataTypeIf
public static STRING readFromStream(java.io.DataInputStream inputStream, IndexEntry indexEntry, long length) throws java.io.IOException
inputStream
- An input streamindexEntry
- The index informationslength
- the length of the data
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 |