|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mercury.EventWriter
class EventWriter
This class provides the interface for writing RemoteEvents to a given LogOutputStream.
Nested Class Summary | |
---|---|
private static class |
EventWriter.EventOutputStream
This class extends ObjectOutputStream in order to obtain object writing methods. |
private static class |
EventWriter.SwitchOutputStream
This class is intended to be the OutputStream provided to EventOutputStream's constructor. |
Field Summary | |
---|---|
private EventWriter.EventOutputStream |
eout
Reference to EventOutputStream for this class |
private EventWriter.SwitchOutputStream |
sout
Reference to SwitchOutputStream for this class |
Constructor Summary | |
---|---|
EventWriter()
Simple constructor that creates the appropriate internal objects. |
Method Summary | |
---|---|
void |
write(RemoteEvent ev,
LogOutputStream out)
Writes the given RemoteEvent to the provided LogOutputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private EventWriter.EventOutputStream eout
private EventWriter.SwitchOutputStream sout
Constructor Detail |
---|
public EventWriter() throws IOException
IOException
- if an I/O error occursMethod Detail |
---|
public void write(RemoteEvent ev, LogOutputStream out) throws IOException, SyncFailedException
IOException
- Thrown if an I/O error occurs
SyncFailedException
- Thrown when the buffers cannot be flushed,
or because the system cannot guarantee that all the
buffers have been synchronized with physical media.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |