public final class PrintDebugFilter extends Object implements BoilerpipeFilter
TextDocument.debugString().| Modifier and Type | Field and Description |
|---|---|
static PrintDebugFilter |
INSTANCE
Returns the default instance for
PrintDebugFilter,
which dumps debug information to System.out |
| Constructor and Description |
|---|
PrintDebugFilter(PrintWriter out)
Creates a new instance of
PrintDebugFilter. |
| Modifier and Type | Method and Description |
|---|---|
static PrintDebugFilter |
getInstance()
Returns the default instance for
PrintDebugFilter,
which dumps debug information to System.out |
boolean |
process(TextDocument doc)
Processes the given document
doc. |
public static final PrintDebugFilter INSTANCE
PrintDebugFilter,
which dumps debug information to System.outpublic PrintDebugFilter(PrintWriter out)
PrintDebugFilter.
Only use this method if you are not going to dump
the debug information to System.out --
for this case, use getInstance() instead.out - The target PrintWriter. Will not be closedpublic static PrintDebugFilter getInstance()
PrintDebugFilter,
which dumps debug information to System.outpublic boolean process(TextDocument doc) throws BoilerpipeProcessingException
BoilerpipeFilterdoc.process in interface BoilerpipeFilterdoc - The TextDocument that is to be processed.true if changes have been made to the
TextDocument.BoilerpipeProcessingExceptionCopyright © 2013-2014. All Rights Reserved.