public void write(byte[] b,int offset,int length) throws java.io.IOException {
  out.write(b,offset,length);
  written+=length;
}

public void write ( byte [ ] b , int offset , int length ) throws java . io . IOException { out . write ( b , offset , length ) ; written += length ; }
writes the array of bytes to the output stream and increments the number of bytes written by the size of the array .
