Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jguild.jrpm.io.datatype
Class I18NSTRING  view I18NSTRING download I18NSTRING.java

java.lang.Object
  extended bycom.jguild.jrpm.io.datatype.I18NSTRING
All Implemented Interfaces:
DataTypeIf

public class I18NSTRING
extends java.lang.Object
implements DataTypeIf

A representation of a rpm I18N string data object


Field Summary
private  java.lang.String[] data
           
private  int localeIndex
           
private static org.apache.log4j.Logger logger
           
private  long size
           
 
Constructor Summary
I18NSTRING()
           
 
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
 com.jguild.jrpm.io.constant.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, com.jguild.jrpm.io.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()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

data

private java.lang.String[] data

localeIndex

private int localeIndex

size

private long size
Constructor Detail

I18NSTRING

public I18NSTRING()
Method Detail

getData

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


getDataObject

public java.lang.Object getDataObject()
Description copied from interface: DataTypeIf
Get the data as an object.

Specified by:
getDataObject in interface DataTypeIf

setLocaleIndex

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


getType

public com.jguild.jrpm.io.constant.RPMIndexType getType()
Description copied from interface: DataTypeIf
Get the type of this data object

Specified by:
getType in interface DataTypeIf

readFromStream

public static I18NSTRING readFromStream(java.io.DataInputStream inputStream,
                                        com.jguild.jrpm.io.IndexEntry indexEntry,
                                        long length)
                                 throws java.io.IOException
Constructs a type froma stream


isArray

public boolean isArray()
Description copied from interface: DataTypeIf
Returns TRUE if this object contains an array or FALSE if it is not an array.

Specified by:
isArray in interface DataTypeIf

getElementCount

public long getElementCount()
Description copied from interface: DataTypeIf
Returns the number of elements stored in this data type.

Specified by:
getElementCount in interface DataTypeIf

getSize

public long getSize()
Description copied from interface: DataTypeIf
Returns the size of this type in the RPM file

Specified by:
getSize in interface DataTypeIf

get

public java.lang.Object get(int i)
Description copied from interface: DataTypeIf
Gets the i-th element of this object.

Specified by:
get in interface DataTypeIf

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).