com.jguild.jrpm.io.datatype

Class CHAR

public final class CHAR extends Object implements DataTypeIf

A representation of a rpm char array data object.

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

Author: kuss

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

Method Detail

get

public Object get(int i)

getData

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

Returns: An array of chars

getDataObject

public Object getDataObject()

getElementCount

public long getElementCount()

getSize

public long getSize()

getType

public RPMIndexType getType()

isArray

public boolean isArray()

readFromStream

public static CHAR readFromStream(DataInputStream inputStream, IndexEntry indexEntry)
Constructs a type froma stream

Parameters: inputStream An input stream indexEntry The index informations

Returns: The size of the read data

Throws: IOException if an I/O error occurs.

toString

public String toString()