ants
Class ByteArray

java.lang.Object
  |
  +--ants.ByteArray

public class ByteArray
extends java.lang.Object


Constructor Summary
ByteArray(byte[] buf)
           
ByteArray(byte[] buf, int offset)
           
ByteArray(byte[] buf, int offset, int len)
           
ByteArray(ByteArray parent, int offset)
           
ByteArray(ByteArray parent, int offset, int len)
           
ByteArray(int len)
           
 
Method Summary
 byte getByte(int index)
           
 void getBytes(int srcBegin, byte[] dst, int dstBegin, int length)
           
 java.lang.String getString(int hibyte, int offset, int count)
           
 int length()
           
 void setByte(int index, byte val)
           
 void setBytes(int dstBegin, byte[] src, int srcBegin, int length)
           
 void setBytes(int dstBegin, ByteArray src, int srcBegin, int length)
           
 void setBytes(int dstBegin, java.lang.String src, int srcBegin, int length)
           
 void setLength(int len)
           
 byte[] toBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray(int len)

ByteArray

public ByteArray(byte[] buf)

ByteArray

public ByteArray(byte[] buf,
                 int offset)

ByteArray

public ByteArray(byte[] buf,
                 int offset,
                 int len)
          throws java.lang.IndexOutOfBoundsException

ByteArray

public ByteArray(ByteArray parent,
                 int offset)

ByteArray

public ByteArray(ByteArray parent,
                 int offset,
                 int len)
          throws java.lang.IndexOutOfBoundsException
Method Detail

length

public final int length()

setLength

public final void setLength(int len)
                     throws java.lang.IndexOutOfBoundsException

getByte

public final byte getByte(int index)
                   throws java.lang.IndexOutOfBoundsException

setByte

public final void setByte(int index,
                          byte val)
                   throws java.lang.IndexOutOfBoundsException

getBytes

public final void getBytes(int srcBegin,
                           byte[] dst,
                           int dstBegin,
                           int length)

setBytes

public final void setBytes(int dstBegin,
                           byte[] src,
                           int srcBegin,
                           int length)

setBytes

public final void setBytes(int dstBegin,
                           ByteArray src,
                           int srcBegin,
                           int length)

setBytes

public final void setBytes(int dstBegin,
                           java.lang.String src,
                           int srcBegin,
                           int length)

getString

public final java.lang.String getString(int hibyte,
                                        int offset,
                                        int count)

toBytes

public final byte[] toBytes()