com.jguild.jrpm.io.datatype

Class STRING

public final class STRING extends Object implements DataTypeIf

A representation of a rpm string data object.

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

Author: kuss

Method Summary
Objectget(int i)
StringgetData()
Get the rpm string as a java string
ObjectgetDataObject()
longgetElementCount()
longgetSize()
RPMIndexTypegetType()
booleanisArray()
static STRINGreadFromStream(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 as a java string

Returns: A string

getDataObject

public Object getDataObject()

getElementCount

public long getElementCount()

getSize

public long getSize()

getType

public RPMIndexType getType()

isArray

public boolean isArray()

readFromStream

public static STRING 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()