final public byte[] toByteArray(){
  final byte[] tmp=new byte[this.pos];
  System.arraycopy(buf,0,tmp,0,this.pos);
  return tmp;
}

final public byte [ ] toByteArray ( ) { final byte [ ] tmp = new byte [ this . pos ] ; System . arraycopy ( buf , 0 , tmp , 0 , this . pos ) ; return tmp ; }
return a copy of the data written on the buffer ( the bytes in [ 0 : pos ] ) .
