|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.datatype.I18NSTRING
A representation of a rpm I18N string data object
Constructor Summary | |
(package private) |
I18NSTRING(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 I18N string array as a java string 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 I18NSTRING |
readFromStream(java.io.DataInputStream inputStream,
IndexEntry indexEntry,
long length)
Constructs a type froma stream |
void |
setLocaleIndex(int index)
Set the locale that should be returned by toString() |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
I18NSTRING(java.lang.String[] data)
Method Detail |
public java.lang.String[] getData()
public java.lang.Object getDataObject()
DataTypeIf
getDataObject
in interface DataTypeIf
public void setLocaleIndex(int index)
index
- The index of the I18N string array. This should match the tag
HEADERI18NTABLE.public RPMIndexType getType()
DataTypeIf
getType
in interface DataTypeIf
public static I18NSTRING 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 |