omorfi 0.9.9
Open morphology of Finnish
Public Member Functions
net.sf.hfst.TransducerStream Class Reference
Inheritance diagram for net.sf.hfst.TransducerStream:

Public Member Functions

 TransducerStream (DataInputStream stream)
 
int getUShort () throws java.io.IOException
 
long getUInt () throws java.io.IOException
 
Boolean getBool () throws java.io.IOException
 

Detailed Description

A simple extension of DataInputStream to handle unsigned little-endian data.

Constructor & Destructor Documentation

◆ TransducerStream()

net.sf.hfst.TransducerStream.TransducerStream ( DataInputStream  stream)

Invokes the DataInputStream constructor with a BufferedInputStream argument.

Parameters
streamBufferedInputStream containing little-endian unsigned variables

Member Function Documentation

◆ getBool()

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

Reads four bytes (sic), returns false if they're all zero and true otherwise.

Returns
a boolean representing the underlying unsigned int

◆ getUInt()

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

Reads the next four bytes as an unsigned little-endian int.

Returns
a long representing the unsigned int

◆ getUShort()

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

Reads the next two bytes as an unsigned little-endian short.

Returns
an int representing the unsigned short

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