com.imagero.uio
Class Transformer
java.lang.Object
com.imagero.uio.xform.XTransformer
com.imagero.uio.Transformer
- public class Transformer
- extends XTransformer
Primitive type conversion, array copying, etc.
|
Method Summary |
static int |
byteToChar(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static int |
byteToChar(byte[] source,
int sourceOffset,
char[] dest,
int destOffset,
boolean bigEndian)
|
static void |
byteToChar(byte[] source,
int sourceOffset,
int count,
char[] dest,
int destOffset,
boolean bigEndian)
|
static double |
byteToDouble(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static int |
byteToDouble(byte[] source,
int sourceOffset,
double[] dest,
int destOffset,
boolean bigEndian)
|
static void |
byteToDouble(byte[] source,
int sourceOffset,
int count,
double[] dest,
int destOffset,
boolean bigEndian)
|
static float |
byteToFloat(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static int |
byteToFloat(byte[] source,
int sourceOffset,
float[] dest,
int destOffset,
boolean bigEndian)
|
static void |
byteToFloat(byte[] source,
int sourceOffset,
int count,
float[] dest,
int destOffset,
boolean bigEndian)
|
static int |
byteToInt(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static int |
byteToInt(byte[] source,
int sourceOffset,
int[] dest,
int destOffset,
boolean bigEndian)
|
static void |
byteToInt(byte[] source,
int sourceOffset,
int count,
int[] dest,
int destOffset,
boolean bigEndian)
|
static long |
byteToLong(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static void |
byteToLong(byte[] source,
int sourceOffset,
int count,
long[] dest,
int destOffset,
boolean bigEndian)
|
static int |
byteToLong(byte[] source,
int sourceOffset,
long[] dest,
int destOffset,
boolean bigEndian)
|
static int |
byteToShort(byte[] source,
int sourceOffset,
boolean bigEndian)
|
static void |
byteToShort(byte[] source,
int sourceOffset,
int count,
short[] dest,
int destOffset,
boolean bigEndian)
|
static int |
byteToShort(byte[] source,
int sourceOffset,
short[] dest,
int destOffset,
boolean bigEndian)
|
static int |
charToByte(char[] source,
int srcOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
charToByte(char[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
charToByte(char v,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
doubleToByte(double[] source,
int srcOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
doubleToByte(double[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
doubleToByte(double d,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
floatToByte(float[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
floatToByte(float[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
floatToByte(float f,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
intToByte(int[] source,
int sourceOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
intToByte(int[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
intToByte(int v,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
longToByte(long[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
longToByte(long[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
longToByte(long v,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static byte[] |
readByteLine(RandomAccessInput in)
|
static int |
readByteLine(RandomAccessInput in,
byte[] dest)
|
static void |
shiftLeft(byte[] src,
int shift)
Make left shift for all bytes in given array |
static void |
shiftRight(byte[] src,
int first,
int shift)
Make right shift for all bytes of given array |
static int |
shortToByte(short[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static void |
shortToByte(short[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
|
static int |
shortToByte(short v,
byte[] dest,
int destOffset,
boolean bigEndian)
|
| Methods inherited from class com.imagero.uio.xform.XTransformer |
byteToChar, byteToChar, byteToChar, byteToDouble, byteToDouble, byteToDouble, byteToFloat, byteToFloat, byteToFloat, byteToInt, byteToInt, byteToInt, byteToInt, byteToInt, byteToLong, byteToLong, byteToLong, byteToLong, byteToLong, byteToShort, byteToShort, byteToShort, byteToShort, byteToShort, charToByte, charToByte, charToByte, doubleToByte, doubleToByte, doubleToByte, floatToByte, floatToByte, floatToByte, get, intToByte, intToByte, intToByte, longToByte, longToByte, longToByte, shortToByte, shortToByte, shortToByte |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformer
public Transformer()
byteToInt
public static final int byteToInt(byte[] source,
int sourceOffset,
int[] dest,
int destOffset,
boolean bigEndian)
byteToInt
public static final void byteToInt(byte[] source,
int sourceOffset,
int count,
int[] dest,
int destOffset,
boolean bigEndian)
intToByte
public static final int intToByte(int[] source,
int sourceOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
intToByte
public static final void intToByte(int[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
intToByte
public static int intToByte(int v,
byte[] dest,
int destOffset,
boolean bigEndian)
byteToInt
public static final int byteToInt(byte[] source,
int sourceOffset,
boolean bigEndian)
byteToChar
public static int byteToChar(byte[] source,
int sourceOffset,
char[] dest,
int destOffset,
boolean bigEndian)
byteToChar
public static void byteToChar(byte[] source,
int sourceOffset,
int count,
char[] dest,
int destOffset,
boolean bigEndian)
byteToChar
public static int byteToChar(byte[] source,
int sourceOffset,
boolean bigEndian)
charToByte
public static int charToByte(char[] source,
int srcOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
charToByte
public static int charToByte(char v,
byte[] dest,
int destOffset,
boolean bigEndian)
charToByte
public static void charToByte(char[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
byteToDouble
public static int byteToDouble(byte[] source,
int sourceOffset,
double[] dest,
int destOffset,
boolean bigEndian)
byteToDouble
public static void byteToDouble(byte[] source,
int sourceOffset,
int count,
double[] dest,
int destOffset,
boolean bigEndian)
byteToDouble
public static double byteToDouble(byte[] source,
int sourceOffset,
boolean bigEndian)
doubleToByte
public static int doubleToByte(double[] source,
int srcOffset,
byte[] dest,
int destOffset,
boolean bigEndian)
doubleToByte
public static void doubleToByte(double[] source,
int srcOffset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
doubleToByte
public static int doubleToByte(double d,
byte[] dest,
int destOffset,
boolean bigEndian)
byteToFloat
public static int byteToFloat(byte[] source,
int sourceOffset,
float[] dest,
int destOffset,
boolean bigEndian)
byteToFloat
public static void byteToFloat(byte[] source,
int sourceOffset,
int count,
float[] dest,
int destOffset,
boolean bigEndian)
byteToFloat
public static float byteToFloat(byte[] source,
int sourceOffset,
boolean bigEndian)
floatToByte
public static int floatToByte(float[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
floatToByte
public static void floatToByte(float[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
floatToByte
public static int floatToByte(float f,
byte[] dest,
int destOffset,
boolean bigEndian)
byteToLong
public static int byteToLong(byte[] source,
int sourceOffset,
long[] dest,
int destOffset,
boolean bigEndian)
byteToLong
public static void byteToLong(byte[] source,
int sourceOffset,
int count,
long[] dest,
int destOffset,
boolean bigEndian)
byteToLong
public static long byteToLong(byte[] source,
int sourceOffset,
boolean bigEndian)
longToByte
public static int longToByte(long[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
longToByte
public static void longToByte(long[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
longToByte
public static int longToByte(long v,
byte[] dest,
int destOffset,
boolean bigEndian)
byteToShort
public static int byteToShort(byte[] source,
int sourceOffset,
short[] dest,
int destOffset,
boolean bigEndian)
byteToShort
public static void byteToShort(byte[] source,
int sourceOffset,
int count,
short[] dest,
int destOffset,
boolean bigEndian)
byteToShort
public static int byteToShort(byte[] source,
int sourceOffset,
boolean bigEndian)
shortToByte
public static int shortToByte(short[] source,
int offset,
byte[] dest,
int destOffset,
boolean bigEndian)
shortToByte
public static void shortToByte(short[] source,
int offset,
int count,
byte[] dest,
int destOffset,
boolean bigEndian)
shortToByte
public static int shortToByte(short v,
byte[] dest,
int destOffset,
boolean bigEndian)
readByteLine
public static final byte[] readByteLine(RandomAccessInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readByteLine
public static final int readByteLine(RandomAccessInput in,
byte[] dest)
throws java.io.IOException
- Throws:
java.io.IOException
shiftRight
public static void shiftRight(byte[] src,
int first,
int shift)
throws java.io.IOException
- Make right shift for all bytes of given array
- Parameters:
src - byte arrayfirst - value used to fill empty bits of first byte in arrayshift - shift amount (from 1 to 7)
- Throws:
java.io.IOException
shiftLeft
public static void shiftLeft(byte[] src,
int shift)
throws java.io.IOException
- Make left shift for all bytes in given array
- Parameters:
src - byte arrayshift - shift amount (from 1 to 7)
- Throws:
java.io.IOException