Package com.topologi.diffx.format
Interface DiffXFormatter
- All Known Subinterfaces:
XMLDiffXFormatter
- All Known Implementing Classes:
BasicXMLFormatter,ConvenientXMLFormatter,MultiplexFormatter,SafeXMLFormatter,ShortStringFormatter,SmartXMLFormatter,StrictXMLFormatter
public interface DiffXFormatter
An interface for formatting the output of the Diff-X algorithm.
- Version:
- 15 December 2004
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(DiffXEvent e) Formats the specified deleted event.voidformat(DiffXEvent e) Formats the specified event.voidinsert(DiffXEvent e) Formats the specified inserted event.voidsetConfig(DiffXConfig config) Sets the configuration to use with this formatter.
-
Method Details
-
format
Formats the specified event.- Parameters:
e- The event to format- Throws:
IOException- Should an I/O exception occurs while formatting.IllegalStateException- If the formatter is not in a state to run this method.
-
insert
Formats the specified inserted event.- Parameters:
e- The event to format- Throws:
IOException- Should an I/O exception occurs while formatting.IllegalStateException- If the formatter is not in a state to run this method.
-
delete
Formats the specified deleted event.- Parameters:
e- The event to format- Throws:
IOException- Should an I/O exception occurs while formatting.IllegalStateException- If the formatter is not in a state to run this method.
-
setConfig
Sets the configuration to use with this formatter.- Parameters:
config- The configuration to use.
-