class EventWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
private EventWriter.EventOutputStream |
eout
Reference to EventOutputStream for this class
|
private EventWriter.SwitchOutputStream |
sout
Reference to SwitchOutputStream for this class
|
| Constructor and Description |
|---|
EventWriter()
Simple constructor that creates the appropriate internal objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(RemoteEvent ev,
LogOutputStream out)
Writes the given RemoteEvent to the provided
LogOutputStream.
|
private EventWriter.EventOutputStream eout
private EventWriter.SwitchOutputStream sout
public EventWriter()
throws IOException
IOException - if an I/O error occurspublic void write(RemoteEvent ev, LogOutputStream out) throws IOException, SyncFailedException
IOException - Thrown if an I/O error occursSyncFailedException - Thrown when the buffers cannot be flushed,
or because the system cannot guarantee that all the
buffers have been synchronized with physical media.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.