omorfi 0.9.9
Open morphology of Finnish
Public Member Functions
net.sf.hfst.ByteArray Class Reference

Public Member Functions

 ByteArray (int s)
 
 ByteArray (ByteArray another, int s)
 
int getSize ()
 
byte get (int i)
 
byte[] getBytes ()
 
short getUByte ()
 
int getUShort () throws java.io.IOException
 
long getUInt () throws java.io.IOException
 
Boolean getBool () throws java.io.IOException
 
float getFloat () throws java.io.IOException
 

Detailed Description

A way of handling unsigned little-endian data

Constructor & Destructor Documentation

◆ ByteArray() [1/2]

net.sf.hfst.ByteArray.ByteArray ( int  s)

Create byte array from int.

Parameters
sint to convert

◆ ByteArray() [2/2]

net.sf.hfst.ByteArray.ByteArray ( ByteArray  another,
int  s 
)

Create byte array from byte array.

Parameters
anotherarray to convert
ssize to convert

Member Function Documentation

◆ get()

byte net.sf.hfst.ByteArray.get ( int  i)

Get a byte.

Parameters
iindex of byte.
Returns
byte at the index

◆ getBool()

Boolean net.sf.hfst.ByteArray.getBool ( ) throws java.io.IOException

Get unsigned bool.

Returns
unsigned bool

◆ getBytes()

byte[] net.sf.hfst.ByteArray.getBytes ( )

Get all bytes.

Returns
all bytes

◆ getFloat()

float net.sf.hfst.ByteArray.getFloat ( ) throws java.io.IOException

Get unsigned float.

Returns
unsigned float

◆ getSize()

int net.sf.hfst.ByteArray.getSize ( )

Get byte array size.

Returns
the size

◆ getUByte()

short net.sf.hfst.ByteArray.getUByte ( )

Get unsigned byte.

Returns
unsigned byte

◆ getUInt()

long net.sf.hfst.ByteArray.getUInt ( ) throws java.io.IOException

Get unsigned int.

Returns
unsigned int

◆ getUShort()

int net.sf.hfst.ByteArray.getUShort ( ) throws java.io.IOException

Get unsigned short.

Returns
unsigned short

The documentation for this class was generated from the following file: