com.jguild.jrpm.io.datatype

Class STRING_ARRAY

public final class STRING_ARRAY extends Object implements DataTypeIf

A representation of a rpm string array data object.

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

Author: kuss

Method Summary
Objectget(int i)
String[]getData()
Get the rpm string array as a java string array
ObjectgetDataObject()
longgetElementCount()
longgetSize()
RPMIndexTypegetType()
booleanisArray()
static STRING_ARRAYreadFromStream(DataInputStream inputStream, IndexEntry indexEntry, long length)
Constructs a type froma stream
StringtoString()

Method Detail

get

public Object get(int i)

getData

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

Returns: An array of strings

getDataObject

public Object getDataObject()

getElementCount

public long getElementCount()

getSize

public long getSize()

getType

public RPMIndexType getType()

isArray

public boolean isArray()

readFromStream

public static STRING_ARRAY 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.

toString

public String toString()