Class PrintDebugFilter
java.lang.Object
com.kohlschutter.boilerpipe.filters.debug.PrintDebugFilter
- All Implemented Interfaces:
BoilerpipeFilter
Prints debug information about the current state of the TextDocument. (= calls
TextDocument.debugString().-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrintDebugFilterReturns the default instance forPrintDebugFilter, which dumps debug information toSystem.outprivate final PrintWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrintDebugFilterReturns the default instance forPrintDebugFilter, which dumps debug information toSystem.outbooleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
Returns the default instance forPrintDebugFilter, which dumps debug information toSystem.out -
out
-
-
Constructor Details
-
PrintDebugFilter
Creates a new instance ofPrintDebugFilter. Only use this method if you are not going to dump the debug information toSystem.out-- for this case, usegetInstance()instead.- Parameters:
out- The targetPrintWriter. Will not be closed
-
-
Method Details
-
getInstance
Returns the default instance forPrintDebugFilter, which dumps debug information toSystem.out -
process
Description copied from interface:BoilerpipeFilterProcesses the given documentdoc.- Specified by:
processin interfaceBoilerpipeFilter- Parameters:
doc- TheTextDocumentthat is to be processed.- Returns:
trueif changes have been made to theTextDocument.- Throws:
BoilerpipeProcessingException
-