|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.topologi.diffx.format.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 DiffXFormattere - The event to format
IllegalStateException - If the formatter is not in a state to run this method.
IOException - Should an I/O exception occurs whilst formatting.DiffXFormatter.format(DiffXEvent)
public void insert(DiffXEvent e)
throws IOException,
IllegalStateException
insert in interface DiffXFormattere - The event to format
IllegalStateException - If the formatter is not in a state to run this method.
IOException - Should an I/O exception occurs whilst formatting.DiffXFormatter.insert(DiffXEvent)
public void delete(DiffXEvent e)
throws IOException,
IllegalStateException
delete in interface DiffXFormattere - The event to format
IOException - Should an I/O exception occurs whilst formatting.
IllegalStateException - If the formatter is not in a state to run this method.DiffXFormatter.delete(DiffXEvent)public void setConfig(DiffXConfig config)
setConfig in interface DiffXFormatterconfig - The configuration to use.com.topologi.diffx.format.DiffXFormatter#setConfig(com.topologi.diffx.DiffXConfig)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 | ||||||||||