|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.topologi.diffx.format.ShortStringFormatter
public final class ShortStringFormatter
A simple formatter to write the short string version of the events.
Constructor Summary | |
---|---|
ShortStringFormatter()
Creates a new formatter on the standard output. |
|
ShortStringFormatter(Writer w)
Creates a new formatter using the specified writer. |
Method Summary | |
---|---|
void |
delete(DiffXEvent e)
Writes the event as a short string preceded by '+'. |
void |
format(DiffXEvent e)
Writes the event as a short string. |
void |
insert(DiffXEvent e)
Writes the event as a short string preceded by '+'. |
void |
setConfig(DiffXConfig config)
Ignored. |
static String |
toShortString(DiffXEvent e)
Returns the short string for the given event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortStringFormatter() throws IOException
IOException
- should an I/O exception occurs.System.out
public ShortStringFormatter(Writer w) throws IOException
w
- The writer to use.
IOException
- should an I/O exception occurs.Method Detail |
---|
public void format(DiffXEvent e) throws IOException, IllegalStateException
format
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 insert(DiffXEvent e) throws IOException, IllegalStateException
insert
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 delete(DiffXEvent e) throws IOException, IllegalStateException
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)
setConfig
in interface DiffXFormatter
config
- The configuration to use.public static String toShortString(DiffXEvent e)
e
- The event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |