org.sourcejammer.util
Class ByteArrayBuilder

java.lang.Object
  |
  +--org.sourcejammer.util.ByteArrayBuilder

public class ByteArrayBuilder
extends java.lang.Object


Field Summary
private  byte[] array
           
private  int lastIndexAdded
           
 
Constructor Summary
ByteArrayBuilder(int maxSize)
           
 
Method Summary
 byte[] toByteArray()
           
 void write(byte[] data, int startIndex, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

private byte[] array

lastIndexAdded

private int lastIndexAdded
Constructor Detail

ByteArrayBuilder

public ByteArrayBuilder(int maxSize)
Method Detail

write

public void write(byte[] data,
                  int startIndex,
                  int length)

toByteArray

public byte[] toByteArray()


Copyright 2003 Soucejammer project.