org.apache.geronimo.interop.util
Class BigEndian

java.lang.Object
  extended byorg.apache.geronimo.interop.util.BigEndian

public abstract class BigEndian
extends java.lang.Object


Constructor Summary
BigEndian()
           
 
Method Summary
static long get48BitLong(byte[] bytes)
           
static long get48BitLong(byte[] bytes, int offset)
           
static byte[] get48BitLongBytes(long value)
           
static int getInt(byte[] bytes)
           
static int getInt(byte[] bytes, int offset)
           
static byte[] getIntBytes(int value)
           
static long getLong(byte[] bytes)
           
static long getLong(byte[] bytes, int offset)
           
static byte[] getLongBytes(long value)
           
static short getShort(byte[] bytes)
           
static short getShort(byte[] bytes, int offset)
           
static byte[] getShortBytes(short value)
           
static void set48BitLong(byte[] bytes, int offset, long value)
           
static void set48BitLong(byte[] bytes, long value)
           
static void setInt(byte[] bytes, int value)
           
static void setInt(byte[] bytes, int offset, int value)
           
static void setLong(byte[] bytes, int offset, long value)
           
static void setLong(byte[] bytes, long value)
           
static void setShort(byte[] bytes, int offset, short value)
           
static void setShort(byte[] bytes, short value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigEndian

public BigEndian()
Method Detail

getShortBytes

public static byte[] getShortBytes(short value)

getIntBytes

public static byte[] getIntBytes(int value)

getLongBytes

public static byte[] getLongBytes(long value)

get48BitLongBytes

public static byte[] get48BitLongBytes(long value)

getShort

public static short getShort(byte[] bytes)

getShort

public static short getShort(byte[] bytes,
                             int offset)

getInt

public static int getInt(byte[] bytes)

getInt

public static int getInt(byte[] bytes,
                         int offset)

getLong

public static long getLong(byte[] bytes)

getLong

public static long getLong(byte[] bytes,
                           int offset)

get48BitLong

public static long get48BitLong(byte[] bytes)

get48BitLong

public static long get48BitLong(byte[] bytes,
                                int offset)

setShort

public static void setShort(byte[] bytes,
                            short value)

setShort

public static void setShort(byte[] bytes,
                            int offset,
                            short value)

setInt

public static void setInt(byte[] bytes,
                          int value)

setInt

public static void setInt(byte[] bytes,
                          int offset,
                          int value)

setLong

public static void setLong(byte[] bytes,
                           long value)

setLong

public static void setLong(byte[] bytes,
                           int offset,
                           long value)

set48BitLong

public static void set48BitLong(byte[] bytes,
                                long value)

set48BitLong

public static void set48BitLong(byte[] bytes,
                                int offset,
                                long value)


Copyright © 2005 Apache Software Foundation. All Rights Reserved.