|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream com.sun.jini.reliableLog.LogOutputStream
public class LogOutputStream
This class extends the functionality of the java.io.OutputStream class in order to provide an output mechanism that can be used by processes that perform logging operations; in particular, processes that store state in order to provide persistence.
OutputStream
Constructor Summary | |
---|---|
LogOutputStream(RandomAccessFile raf)
Creates an output file with the specified RandomAccessFile |
Method Summary | |
---|---|
void |
close()
A LogOutputStream cannot be closed, so this does nothing. |
void |
write(byte[] b)
Writes an array of bytes. |
void |
write(byte[] b,
int off,
int len)
Writes a sub-array of bytes. |
void |
write(int b)
Writes a byte of data. |
Methods inherited from class java.io.OutputStream |
---|
flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogOutputStream(RandomAccessFile raf) throws IOException
RandomAccessFile
raf
- the output file
IOException
- If an I/O error has occurred.Method Detail |
---|
public void write(int b) throws IOException
write
in class OutputStream
b
- the byte to be written
IOException
- If an I/O error has occurred.public void write(byte[] b) throws IOException
write
in class OutputStream
b
- the data to be written
IOException
- If an I/O error has occurred.public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes to write
IOException
- If an I/O error has occurred.public final void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
- If an I/O error has occurred.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |