public void write(byte[] b,int off,int len) throws java.io.IOException {
  for (int iter=off; iter < len + off; iter++) {
    write(b[iter]);
  }
}

public void write ( byte [ ] b , int off , int len ) throws java . io . IOException { for ( int iter = off ; iter < len + off ; iter ++ ) { write ( b [ iter ] ) ; } }
writes len bytes from the specified byte array starting at offset off to this output stream . the general contract for write ( b , off , len ) is that some of the bytes in the array b are written to the output stream in order ; element b [ off ] is the first byte written and b [ off + len - 1 ] is the last byte written by this operation . the write method of outputstream calls the write method of one argument on each of the bytes to be written out . subclasses are encouraged to override this method and provide a more efficient implementation . if b is null , a nullpointerexception is thrown . if off is negative , or len is negative , or off + len is greater than the length of the array b , then an indexoutofboundsexception is thrown .
