public void write(byte[] b, int off, int len) throws IOException {
    if (b == null) {
      throw new NullPointerException();
    }

    if (off < 0 || len < 0 || len > b.length || off > b.length - len) {
      throw new ArrayIndexOutOfBoundsException();
    }

    file.write(b, off, len);
}
Constructs a <code>SeekableOutputStream</code> from a
<code>RandomAccessFile</code>.  Unless otherwise indicated,
all method invocations are fowarded to the underlying
<code>RandomAccessFile</code>.

@param file The <code>RandomAccessFile</code> to which calls
            will be forwarded.
@exception IllegalArgumentException if <code>file</code> is
           <code>null</code>.
plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/util/SeekableOutputStream.java