public void reserve(int capacity){
  if (bytes == null || bytes.length < capacity) {
    byte[] newArray=new byte[capacity];
    if (bytes != null) {
      System.arraycopy(bytes,0,newArray,0,bytes.length);
    }
    bytes=newArray;
  }
}

public void reserve ( int capacity ) { if ( bytes == null || bytes . length < capacity ) { byte [ ] newArray = new byte [ capacity ] ; if ( bytes != null ) { System . arraycopy ( bytes , 0 , newArray , 0 , bytes . length ) ; } bytes = newArray ; } }
increase the capacity of the array to " capacity " if the current capacity is smaller
