org.netbeans.lib.cvsclient.util
Class ByteArray

java.lang.Object
  extended by org.netbeans.lib.cvsclient.util.ByteArray

public class ByteArray
extends java.lang.Object

The growable array of bytes. This class in not thread safe.


Constructor Summary
ByteArray()
          Creates a new instance of ByteArray
 
Method Summary
 void add(byte b)
          Add a byte to the byte array.
 byte[] getBytes()
          Get the array of bytes.
 java.lang.String getStringFromBytes()
          Get the String representation of bytes in this array.
 void reset()
          Reset the byte array to zero length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray()
Creates a new instance of ByteArray

Method Detail

add

public void add(byte b)
Add a byte to the byte array.


getBytes

public byte[] getBytes()
Get the array of bytes.


getStringFromBytes

public java.lang.String getStringFromBytes()
Get the String representation of bytes in this array. The bytes are decoded using the platform's default charset.


reset

public void reset()
Reset the byte array to zero length.


 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.