18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.rmi.log;
27
28 import java.io.*;
29
30 public
31 class LogOutputStream extends OutputStream {
32
33 private RandomAccessFile raf;
34
35 /**
36 * Creates an output file with the specified system dependent
37 * file descriptor.
38 * @param fd the system dependent file descriptor
39 * @exception IOException If an I/O error has occurred.
40 */
41 public LogOutputStream(RandomAccessFile raf) throws IOException {
42 this.raf = raf;
43 }
44
45 /**
46 * Writes a byte of data. This method will block until the byte is
47 * actually written.
48 * @param b the byte to be written
49 * @exception IOException If an I/O error has occurred.
50 */
51 public void write(int b) throws IOException {
52 raf.write(b);
53 }
54
55 /**
56 * Writes an array of bytes. Will block until the bytes
57 * are actually written.
58 * @param b the data to be written
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.rmi.log;
27
28 import java.io.*;
29
30 public
31 class LogOutputStream extends OutputStream {
32
33 private RandomAccessFile raf;
34
35 /**
36 * Creates an output file with the specified system dependent
37 * file descriptor.
38 * @param raf the system dependent file descriptor.
39 * @exception IOException If an I/O error has occurred.
40 */
41 public LogOutputStream(RandomAccessFile raf) throws IOException {
42 this.raf = raf;
43 }
44
45 /**
46 * Writes a byte of data. This method will block until the byte is
47 * actually written.
48 * @param b the byte to be written
49 * @exception IOException If an I/O error has occurred.
50 */
51 public void write(int b) throws IOException {
52 raf.write(b);
53 }
54
55 /**
56 * Writes an array of bytes. Will block until the bytes
57 * are actually written.
58 * @param b the data to be written
|