|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.topologi.diffx.format.MultiplexFormatter
public final class MultiplexFormatter
A formatter which can relay the method calls to multiple formatters.
Constructor Summary | |
---|---|
MultiplexFormatter()
Creates a new formatter without any underlying formatters. |
|
MultiplexFormatter(DiffXFormatter f)
Creates a new formatter wrapping the specified formatter. |
Method Summary | |
---|---|
void |
add(DiffXFormatter f)
Adds a formatter to multiplex. |
void |
delete(DiffXEvent e)
Formats the specified deleted event. |
void |
format(DiffXEvent e)
Formats the specified event. |
void |
insert(DiffXEvent e)
Formats the specified inserted event. |
void |
setConfig(DiffXConfig config)
Sets the configuration to use with this formatter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiplexFormatter()
public MultiplexFormatter(DiffXFormatter f)
f
- The formatter to use.Method Detail |
---|
public void add(DiffXFormatter f)
f
- The Diff-X formatter to add.public void format(DiffXEvent e) throws IOException
DiffXFormatter
format
in interface DiffXFormatter
e
- The event to format
IOException
- Should an I/O exception occurs while formatting.public void insert(DiffXEvent e) throws IOException
DiffXFormatter
insert
in interface DiffXFormatter
e
- The event to format
IOException
- Should an I/O exception occurs while formatting.public void delete(DiffXEvent e) throws IOException, IllegalStateException
DiffXFormatter
delete
in interface DiffXFormatter
e
- The event to format
IOException
- Should an I/O exception occurs while formatting.
IllegalStateException
- If the formatter is not in a state to run this method.public void setConfig(DiffXConfig config)
DiffXFormatter
setConfig
in interface DiffXFormatter
config
- The configuration to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |