theba.core.io.DataConversion Class Reference

List of all members.

Static Public Member Functions

static byte[] shortToBytes (short[] arr)
static short bytesToShort (byte[] byteArray, int offset)

Static Package Attributes

static byte[] output

Detailed Description

A helper-class containing functionality to convert arrays of different types

Author:
jensbw

Definition at line 9 of file DataConversion.java.


Member Function Documentation

static short theba.core.io.DataConversion.bytesToShort ( byte[]  byteArray,
int  offset 
) [static]

Convert the two bytes starting at the given offset to a short

Parameters:
byteArray the byte array
offset where to start
Returns:
a short
Exceptions:
java.lang.ArrayIndexOutOfBoundsException 

Definition at line 34 of file DataConversion.java.

static byte [] theba.core.io.DataConversion.shortToBytes ( short[]  arr  )  [static]

Definition at line 12 of file DataConversion.java.

References theba.core.io.DataConversion.output.


Member Data Documentation

byte [] theba.core.io.DataConversion.output [static, package]

Definition at line 10 of file DataConversion.java.

Referenced by theba.core.io.DataConversion.shortToBytes().


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

Generated on Fri Nov 13 08:57:08 2009 for Theba by  doxygen 1.6.1