net.sf.rej.util
Class ByteSerializer
java.lang.Object
net.sf.rej.util.ByteSerializer
public class ByteSerializer
- extends java.lang.Object
A class that wraps a byte array for stream-type writing.
- Author:
- Sami Koivu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteSerializer
public ByteSerializer(boolean bigEndian)
getBytes
public byte[] getBytes()
addBytes
public void addBytes(byte[] data)
addBytes
public void addBytes(byte[] data,
int length)
addBytes
public void addBytes(byte[] data,
int offset,
int length)
addByte
public void addByte(int b)
addShort
public void addShort(int i)
addInt
public void addInt(long l)
size
public int size()