public void write(byte[] bytes) throws IOException {
        for (int i = 0; i < bytes.length; i++) {
            write(bytes[i]);
        }
    }
public void write ( byte [ ] bytes ) throws IOException { for ( int i = 0 ; i < bytes . length ; i ++ ) { write ( bytes [ i ] ) ; } }
Writes the given bytes to the destination

@param bytes
@throws IOException