| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.ByteUtils
public class ByteUtils
Utilities for reading and writing the components of binary files.
----------------------------------------------------------------------------
, $Revision: 6259 $ $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $| Constructor Summary | |
|---|---|
ByteUtils()
 | 
|
| Method Summary | |
|---|---|
static double | 
readBEDouble(byte[] b,
                         int off)
method: readBEDouble(byte[] b, int off) Reads a big endian double.  | 
static float | 
readBEFloat(byte[] b,
                       int off)
Reads a big endian float.  | 
static int | 
readBEInt(byte[] b,
                   int off)
Reads a big endian integer.  | 
static long | 
readBELong(byte[] b,
                     int off)
method: readBELong(byte[] b, int off) Reads a little endian 8 byte integer.  | 
static int | 
readBEShort(byte[] b,
                       int off)
method: readBEShort(byte[] b, int off) Reads a big endian small integer.  | 
static double | 
readLEDouble(byte[] b,
                         int off)
method: readLEDouble(byte[] b, int off) Reads a little endian double.  | 
static float | 
readLEFloat(byte[] b,
                       int off)
Reads a little endian float.  | 
static int | 
readLEInt(byte[] b,
                   int off)
Reads a little endian integer.  | 
static long | 
readLELong(byte[] b,
                     int off)
method: readLELong(byte[] b, int off) Reads a little endian 8 byte integer.  | 
static int | 
readLEShort(byte[] b,
                       int off)
method: readLEShort(byte[] b, int off) Reads a little endian small integer.  | 
static int | 
writeBEDouble(byte[] b,
                           int off,
                           double val)
method: writeBEDouble(byte[] b, int off, double val) Writes the given double to the given buffer at the given location in big endian format.  | 
static int | 
writeBEInt(byte[] b,
                     int off,
                     int val)
method: writeBEInt(byte[] b, int off, int val) Writes the given integer to the given buffer at the given location in big endian format.  | 
static int | 
writeBELong(byte[] b,
                       int off,
                       long val)
method: writeBELong(byte[] b, int off, long val) Writes the given long to the given buffer at the given location in big endian format.  | 
static int | 
writeBEShort(byte[] b,
                         int off,
                         int val)
method: writeBEShort(byte[] b, int off, int val) Writes the given short to the given buffer at the given location in big endian format.  | 
static int | 
writeLEDouble(byte[] b,
                           int off,
                           double val)
method: writeLEDouble(byte[] b, int off, double val) Writes the given double to the given buffer at the given location in little endian format.  | 
static int | 
writeLEInt(byte[] b,
                     int off,
                     int val)
method: writeLEInt(byte[] b, int off, int val) Writes the given integer to the given buffer at the given location in little endian format.  | 
static int | 
writeLELong(byte[] b,
                       int off,
                       long val)
method: writeLELong(byte[] b, int off, long val) Writes the given long to the given buffer at the given location in little endian format.  | 
static int | 
writeLEShort(byte[] b,
                         int off,
                         int val)
method: writeLEShort(byte[] b, int off, int val) Writes the given short to the given buffer at the given location in big endian format.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ByteUtils()
| Method Detail | 
|---|
public static int readBEShort(byte[] b,
                              int off)
b - the raw data bufferoff - the offset into the buffer where the int resides
public static int readLEShort(byte[] b,
                              int off)
b - the raw data bufferoff - the offset into the buffer where the int resides
public static int readBEInt(byte[] b,
                            int off)
b - the raw data bufferoff - the offset into the buffer where the int resides
public static int readLEInt(byte[] b,
                            int off)
b - the raw data bufferoff - the offset into the buffer where the int resides
public static long readLELong(byte[] b,
                              int off)
b - the raw data bufferoff - the offset into the buffer where the long resides
public static long readBELong(byte[] b,
                              int off)
b - the raw data bufferoff - the offset into the buffer where the long resides
public static float readLEFloat(byte[] b,
                                int off)
b - the raw data bufferoff - the offset into the buffer where the float resides
public static float readBEFloat(byte[] b,
                                int off)
b - the raw data bufferoff - the offset into the buffer where the float resides
public static double readLEDouble(byte[] b,
                                  int off)
b - the raw data bufferoff - the offset into the buffer where the double resides
public static double readBEDouble(byte[] b,
                                  int off)
b - the raw data bufferoff - the offset into the buffer where the double resides
public static int writeBEShort(byte[] b,
                               int off,
                               int val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the short to write
public static int writeLEShort(byte[] b,
                               int off,
                               int val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the short to write
public static int writeBEInt(byte[] b,
                             int off,
                             int val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the integer to write
public static int writeLEInt(byte[] b,
                             int off,
                             int val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the integer to write
public static int writeLELong(byte[] b,
                              int off,
                              long val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the long to write
public static int writeBELong(byte[] b,
                              int off,
                              long val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the long to write
public static int writeLEDouble(byte[] b,
                                int off,
                                double val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the double to write
public static int writeBEDouble(byte[] b,
                                int off,
                                double val)
b - the data bufferoff - the offset into the buffer where writing should occurval - the double to write
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net