01: package uk.org.ponder.streamutil;
02:
03: import java.io.IOException;
04:
05: /** This interface abstracts the properties of a writeable random access file.
06: */
07:
08: public interface RandomAccessWrite extends RandomAccessRead {
09: /** Writes the specified byte to this file.
10: * @param b the byte to be written.
11: * @exception IOException if an I/O error occurs.
12: */
13: public void write(int b) throws IOException;
14:
15: /** Writes len bytes from the specified byte array starting at offset off to this file.
16: * @param b the data.
17: * @param off the start offset in the data.
18: * @param len - the number of bytes to write.
19: * @exception IOException if an I/O error occurs.
20: */
21: public void write(byte b[], int off, int len) throws IOException;
22: }
|