public interface ConsoleSerializer
ConsoleSerializers to a ConsoleHelper by calling
ConsoleHelper.addConsoleSerializer(org.mdiutil.lang.console.ConsoleSerializer).
Serializers allow to serialize the content which has been printed to the console to a text or an HTML file.| Modifier and Type | Method and Description |
|---|---|
void |
addNewLine()
Called when a new line is added through
ConsoleHelper.println(). |
void |
addText(EscapedText text)
Called when a porition of text is added through
ConsoleHelper.addText(java.lang.String). |
void |
clear()
Clear the content of the serializer.
|
void |
serialize(File file)
Called when the serializer is serialized.
|
void addText(EscapedText text)
ConsoleHelper.addText(java.lang.String).text - the escaped textvoid addNewLine()
ConsoleHelper.println().void clear()
void serialize(File file) throws IOException
file - the fileIOException