jxUtil 0.6

org.sourceforge.jxutil.io
Class DataConverter

java.lang.Object
  |
  +--org.sourceforge.jxutil.io.DataConverter
Direct Known Subclasses:
DataConverterBE, DataConverterLE

public abstract class DataConverter
extends Object


Constructor Summary
(package private) DataConverter()
           
 
Method Summary
 byte getByte(byte[] buf)
           
 byte getByte(byte[] buf, int ofs)
           
 double getDouble(byte[] buf)
           
 double getDouble(byte[] buf, int ofs)
           
 float getFloat(byte[] buf)
           
 float getFloat(byte[] buf, int ofs)
           
static DataConverter getInstance()
           
static DataConverter getInstance(boolean bele)
           
 int getInt(byte[] buf)
           
abstract  int getInt(byte[] buf, int ofs)
           
 long getLong(byte[] buf)
           
abstract  long getLong(byte[] buf, int ofs)
           
 short getShort(byte[] buf)
           
abstract  short getShort(byte[] buf, int ofs)
           
 int getUnsignedByte(byte[] buf)
           
 int getUnsignedByte(byte[] buf, int ofs)
           
 long getUnsignedInt(byte[] buf)
           
 long getUnsignedInt(byte[] buf, int ofs)
           
 BigInteger getUnsignedLong(byte[] buf)
           
 BigInteger getUnsignedLong(byte[] buf, int ofs)
           
 int getUnsignedShort(byte[] buf)
           
 int getUnsignedShort(byte[] buf, int ofs)
           
 byte[] setByte(byte x)
           
 void setByte(byte x, byte[] buf)
           
 void setByte(byte x, byte[] buf, int ofs)
           
 byte[] setDouble(double x)
           
 void setDouble(double x, byte[] buf)
           
 void setDouble(double x, byte[] buf, int ofs)
           
 byte[] setFloat(float x)
           
 void setFloat(float x, byte[] buf)
           
 void setFloat(float x, byte[] buf, int ofs)
           
 byte[] setInt(int x)
           
 void setInt(int x, byte[] buf)
           
abstract  void setInt(int x, byte[] buf, int ofs)
           
 byte[] setLong(long x)
           
 void setLong(long x, byte[] buf)
           
abstract  void setLong(long x, byte[] buf, int ofs)
           
 byte[] setShort(short x)
           
 void setShort(short x, byte[] buf)
           
abstract  void setShort(short x, byte[] buf, int ofs)
           
 byte[] setUnsignedByte(int x)
           
 void setUnsignedByte(int x, byte[] buf)
           
 void setUnsignedByte(int x, byte[] buf, int ofs)
           
 byte[] setUnsignedInt(long x)
           
 void setUnsignedInt(long x, byte[] buf)
           
 void setUnsignedInt(long x, byte[] buf, int ofs)
           
 byte[] setUnsignedLong(BigInteger x)
           
 void setUnsignedLong(BigInteger x, byte[] buf)
           
 void setUnsignedLong(BigInteger x, byte[] buf, int ofs)
           
 byte[] setUnsignedShort(int x)
           
 void setUnsignedShort(int x, byte[] buf)
           
 void setUnsignedShort(int x, byte[] buf, int ofs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataConverter

DataConverter()
Method Detail

getByte

public final byte getByte(byte[] buf)

getByte

public final byte getByte(byte[] buf,
                          int ofs)

getDouble

public final double getDouble(byte[] buf)

getDouble

public final double getDouble(byte[] buf,
                              int ofs)

getFloat

public final float getFloat(byte[] buf)

getFloat

public final float getFloat(byte[] buf,
                            int ofs)

getInstance

public static DataConverter getInstance()

getInstance

public static DataConverter getInstance(boolean bele)

getInt

public final int getInt(byte[] buf)

getInt

public abstract int getInt(byte[] buf,
                           int ofs)

getLong

public final long getLong(byte[] buf)

getLong

public abstract long getLong(byte[] buf,
                             int ofs)

getShort

public final short getShort(byte[] buf)

getShort

public abstract short getShort(byte[] buf,
                               int ofs)

getUnsignedByte

public final int getUnsignedByte(byte[] buf)

getUnsignedByte

public final int getUnsignedByte(byte[] buf,
                                 int ofs)

getUnsignedInt

public final long getUnsignedInt(byte[] buf)

getUnsignedInt

public final long getUnsignedInt(byte[] buf,
                                 int ofs)

getUnsignedLong

public final BigInteger getUnsignedLong(byte[] buf)

getUnsignedLong

public final BigInteger getUnsignedLong(byte[] buf,
                                        int ofs)

getUnsignedShort

public final int getUnsignedShort(byte[] buf)

getUnsignedShort

public final int getUnsignedShort(byte[] buf,
                                  int ofs)

setByte

public final byte[] setByte(byte x)

setByte

public final void setByte(byte x,
                          byte[] buf)

setByte

public final void setByte(byte x,
                          byte[] buf,
                          int ofs)

setDouble

public final byte[] setDouble(double x)

setDouble

public final void setDouble(double x,
                            byte[] buf)

setDouble

public final void setDouble(double x,
                            byte[] buf,
                            int ofs)

setFloat

public final byte[] setFloat(float x)

setFloat

public final void setFloat(float x,
                           byte[] buf)

setFloat

public final void setFloat(float x,
                           byte[] buf,
                           int ofs)

setInt

public final byte[] setInt(int x)

setInt

public final void setInt(int x,
                         byte[] buf)

setInt

public abstract void setInt(int x,
                            byte[] buf,
                            int ofs)

setLong

public final byte[] setLong(long x)

setLong

public final void setLong(long x,
                          byte[] buf)

setLong

public abstract void setLong(long x,
                             byte[] buf,
                             int ofs)

setShort

public final byte[] setShort(short x)

setShort

public final void setShort(short x,
                           byte[] buf)

setShort

public abstract void setShort(short x,
                              byte[] buf,
                              int ofs)

setUnsignedByte

public final byte[] setUnsignedByte(int x)

setUnsignedByte

public final void setUnsignedByte(int x,
                                  byte[] buf)

setUnsignedByte

public final void setUnsignedByte(int x,
                                  byte[] buf,
                                  int ofs)

setUnsignedInt

public final byte[] setUnsignedInt(long x)

setUnsignedInt

public final void setUnsignedInt(long x,
                                 byte[] buf)

setUnsignedInt

public final void setUnsignedInt(long x,
                                 byte[] buf,
                                 int ofs)

setUnsignedLong

public final byte[] setUnsignedLong(BigInteger x)

setUnsignedLong

public final void setUnsignedLong(BigInteger x,
                                  byte[] buf)

setUnsignedLong

public final void setUnsignedLong(BigInteger x,
                                  byte[] buf,
                                  int ofs)

setUnsignedShort

public final byte[] setUnsignedShort(int x)

setUnsignedShort

public final void setUnsignedShort(int x,
                                   byte[] buf)

setUnsignedShort

public final void setUnsignedShort(int x,
                                   byte[] buf,
                                   int ofs)

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.