public static final void write(WritableByteChannel ch, byte[] bytes) throws IOException
    {
        write(ch, bytes, 0, bytes.length);
    }
public static final void write ( WritableByteChannel ch , byte [ ] bytes ) throws IOException { write ( ch , bytes , 0 , bytes . length ) ; }
Writes bytes to channel
@param ch
@param bytes
@throws IOException