com.jguild.jrpm.io.datatype

Class INT16

public final class INT16 extends Object implements DataTypeIf

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

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

Author: kuss

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

Method Detail

get

public Object get(int i)

See Also: DataTypeIf

getData

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

Returns: An array of shorts

getDataObject

public Object getDataObject()

See Also: DataTypeIf

getElementCount

public long getElementCount()

See Also: getElementCount

getSize

public long getSize()

See Also: getSize

getType

public RPMIndexType getType()

See Also: getType

isArray

public boolean isArray()

See Also: isArray

readFromStream

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

See Also: java.lang.Object#toString()