Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.util
Class TypeConversionUtils  view TypeConversionUtils download TypeConversionUtils.java

java.lang.Object
  extended byorg.jempeg.util.TypeConversionUtils

public class TypeConversionUtils
extends java.lang.Object

All the C-to-Java type conversion you might ever want to do, packed into one handy class. It slices, it dices....

Version:
$Revision: 1.6 $

Constructor Summary
TypeConversionUtils()
           
 
Method Summary
static short toSigned16(byte a, byte b)
           
static short toSigned16(int _b)
           
static short[] toSigned16Array(int _value)
           
static void toSigned16Array(short[] _bytes, int _value)
           
static void toSigned16Array(short[] _bytes, int _offset, int _value)
           
static int toSigned32(byte a, byte b, byte c, byte d)
           
static int toSigned32(int _b)
           
static short[] toSigned32Array(long _value)
           
static void toSigned32Array(short[] _bytes, int _offset, long _value)
           
static void toSigned32Array(short[] _bytes, long _value)
           
static byte toSigned8(int _b)
           
static int toUnsigned16(byte a, byte b)
           
static int toUnsigned16(int _b)
           
static short[] toUnsigned16Array(int _value)
           
static void toUnsigned16Array(short[] _bytes, int _value)
           
static void toUnsigned16Array(short[] _bytes, int _offset, int _value)
           
static long toUnsigned32(byte a, byte b, byte c, byte d)
           
static long toUnsigned32(int _b)
           
static short[] toUnsigned32Array(long _value)
           
static void toUnsigned32Array(short[] _bytes, int _offset, long _value)
           
static void toUnsigned32Array(short[] _bytes, long _value)
           
static short toUnsigned8(int _b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConversionUtils

public TypeConversionUtils()
Method Detail

toSigned16Array

public static final short[] toSigned16Array(int _value)

toSigned32Array

public static final short[] toSigned32Array(long _value)

toSigned16Array

public static final void toSigned16Array(short[] _bytes,
                                         int _value)

toSigned32Array

public static final void toSigned32Array(short[] _bytes,
                                         long _value)

toSigned16Array

public static final void toSigned16Array(short[] _bytes,
                                         int _offset,
                                         int _value)

toSigned32Array

public static final void toSigned32Array(short[] _bytes,
                                         int _offset,
                                         long _value)

toUnsigned16Array

public static final short[] toUnsigned16Array(int _value)

toUnsigned32Array

public static final short[] toUnsigned32Array(long _value)

toUnsigned16Array

public static final void toUnsigned16Array(short[] _bytes,
                                           int _value)

toUnsigned32Array

public static final void toUnsigned32Array(short[] _bytes,
                                           long _value)

toUnsigned16Array

public static final void toUnsigned16Array(short[] _bytes,
                                           int _offset,
                                           int _value)

toUnsigned32Array

public static final void toUnsigned32Array(short[] _bytes,
                                           int _offset,
                                           long _value)

toSigned16

public static final short toSigned16(byte a,
                                     byte b)

toUnsigned16

public static final int toUnsigned16(byte a,
                                     byte b)

toSigned32

public static final int toSigned32(byte a,
                                   byte b,
                                   byte c,
                                   byte d)

toUnsigned32

public static final long toUnsigned32(byte a,
                                      byte b,
                                      byte c,
                                      byte d)

toUnsigned8

public static final short toUnsigned8(int _b)

toUnsigned16

public static final int toUnsigned16(int _b)

toUnsigned32

public static final long toUnsigned32(int _b)

toSigned8

public static final byte toSigned8(int _b)

toSigned16

public static final short toSigned16(int _b)

toSigned32

public static final int toSigned32(int _b)