com.jguild.jrpm.io.datatype

Class I18NSTRING

public final class I18NSTRING extends Object implements DataTypeIf

A representation of a rpm I18N string data object.

Version: $Id: I18NSTRING.java,v 1.4 2005/11/11 08:27:40 mkuss Exp $

Author: kuss

Method Summary
Objectget(int i)
String[]getData()
Get the rpm I18N string array as a java string array
ObjectgetDataObject()
longgetElementCount()
longgetSize()
RPMIndexTypegetType()
booleanisArray()
static I18NSTRINGreadFromStream(DataInputStream inputStream, IndexEntry indexEntry, long length)
Constructs a type froma stream
voidsetLocaleIndex(int index)
Set the locale that should be returned by toString()
StringtoString()

Method Detail

get

public Object get(int i)

getData

public String[] getData()
Get the rpm I18N string array as a java string array

Returns: An array of I18N strings (as defined in the tag HEADERI18NTABLE)

getDataObject

public Object getDataObject()

getElementCount

public long getElementCount()

getSize

public long getSize()

getType

public RPMIndexType getType()

isArray

public boolean isArray()

readFromStream

public static I18NSTRING readFromStream(DataInputStream inputStream, IndexEntry indexEntry, long length)
Constructs a type froma stream

Parameters: inputStream An input stream indexEntry The index informations length the length of the data

Returns: The size of the read data

Throws: IOException if an I/O error occurs.

setLocaleIndex

public void setLocaleIndex(int index)
Set the locale that should be returned by toString()

Parameters: index The index of the I18N string array. This should match the tag HEADERI18NTABLE.

toString

public String toString()