com.jguild.jrpm.io.datatype

Class INT8

public final class INT8 extends Object implements DataTypeIf

A representation of a rpm 8 byte integer array data object.

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

Author: kuss

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

Method Detail

get

public Object get(int i)

getData

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

Returns: An array of bytes

getDataObject

public Object getDataObject()

getElementCount

public long getElementCount()

getSize

public long getSize()

getType

public RPMIndexType getType()

isArray

public boolean isArray()

readFromStream

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