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

Quick Search    Search Deep

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

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

public class STRING_ARRAY
extends java.lang.Object
implements DataTypeIf

A representation of a rpm string array data object


Field Summary
private  java.lang.String[] data
           
private static org.apache.log4j.Logger logger
           
private  long size
           
 
Constructor Summary
STRING_ARRAY()
           
 
Method Summary
 java.lang.Object get(int i)
          Gets the i-th element of this object.
 java.lang.String[] getData()
          Get the rpm 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 STRING_ARRAY readFromStream(java.io.DataInputStream inputStream, com.jguild.jrpm.io.IndexEntry indexEntry, long length)
          Constructs a type froma stream
 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

size

private long size
Constructor Detail

STRING_ARRAY

public STRING_ARRAY()
Method Detail

getData

public java.lang.String[] getData()
Get the rpm 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

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 STRING_ARRAY 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()).