public void write(byte[] bytes) throws IOException {
  dataOutput.write(bytes);
  offset+=bytes.length;
}

public void write ( byte [ ] bytes ) throws IOException { dataOutput . write ( bytes ) ; offset += bytes . length ; }
writes a byte array completely .
