APIdia Launch Partner
Top Fields Constructors Methods
sun.rmi.log

public Class LogOutputStream

extends OutputStream
Class Inheritance
Imports
java.io.*

Field Summary

Modifier and TypeField and Description
private RandomAccessFile

Constructor Summary

AccessConstructor and Description
public
LogOutputStream(RandomAccessFile
the system dependent file descriptor.
raf
)

Creates an output file with the specified system dependent file descriptor.

Method Summary

Modifier and TypeMethod and Description
public final void
close()

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Can not close a LogOutputStream, so this does nothing.

public void
write(int
the byte to be written
b
)

Implements abstract java.io.OutputStream.write.

Writes a byte of data.

public void
write(byte[]
the data to be written
b
)

Overrides java.io.OutputStream.write.

Writes an array of bytes.

public void
write(byte[]
the data to be written
b
,
int
the start offset in the data
off
,
int
the number of bytes that are written
len
)

Overrides java.io.OutputStream.write.

Writes a sub array of bytes.

Inherited from java.io.OutputStream:
flushnullOutputStream

Field Detail

rafback to summary
private RandomAccessFile raf

Constructor Detail

LogOutputStreamback to summary
public LogOutputStream(RandomAccessFile raf) throws IOException

Creates an output file with the specified system dependent file descriptor.

Parameters
raf:RandomAccessFile

the system dependent file descriptor.

Exceptions
IOException:
If an I/O error has occurred.

Method Detail

closeback to summary
public final void close() throws IOException

Overrides java.io.OutputStream.close.

Implements java.io.Closeable.close.

Can not close a LogOutputStream, so this does nothing.

Exceptions
IOException:
If an I/O error has occurred.
writeback to summary
public void write(int b) throws IOException

Implements abstract java.io.OutputStream.write.

Writes a byte of data. This method will block until the byte is actually written.

Parameters
b:int

the byte to be written

Exceptions
IOException:
If an I/O error has occurred.
writeback to summary
public void write(byte[] b) throws IOException

Overrides java.io.OutputStream.write.

Writes an array of bytes. Will block until the bytes are actually written.

Parameters
b:byte[]

the data to be written

Exceptions
IOException:
If an I/O error has occurred.
writeback to summary
public void write(byte[] b, int off, int len) throws IOException

Overrides java.io.OutputStream.write.

Writes a sub array of bytes.

Parameters
b:byte[]

the data to be written

off:int

the start offset in the data

len:int

the number of bytes that are written

Exceptions
IOException:
If an I/O error has occurred.