net.sourceforge.apphere.util
Class BytesBuffer

java.lang.Object
  extended bynet.sourceforge.apphere.util.BytesBuffer

Deprecated. use Java 1.4 java.nio classes instead http://www.essex.ac.uk/chimera BytesBuffer.java Created 27-Mar-2003 net.sourceforge.apphere.util

public class BytesBuffer
extends java.lang.Object

Author:
Dewi Roberts

Constructor Summary
BytesBuffer()
          Deprecated.  
BytesBuffer(int initialCapacity)
          Deprecated.  
 
Method Summary
 void add(byte b)
          Deprecated.  
 void add(byte[] ba)
          Deprecated.  
 void expandBuffer(int byHowMuch)
          Deprecated.  
 byte getByte(int pos)
          Deprecated.  
 byte[] getBytes()
          Deprecated.  
 int getLength()
          Deprecated. Returns the number of actual bytes in buffer (not capacity).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesBuffer

public BytesBuffer()
Deprecated. 

BytesBuffer

public BytesBuffer(int initialCapacity)
Deprecated. 
Method Detail

add

public void add(byte b)
Deprecated. 

add

public void add(byte[] ba)
Deprecated. 

expandBuffer

public void expandBuffer(int byHowMuch)
Deprecated. 

getBytes

public byte[] getBytes()
Deprecated. 

getByte

public byte getByte(int pos)
Deprecated. 

getLength

public int getLength()
Deprecated. 
Returns the number of actual bytes in buffer (not capacity).

Returns:
int