Class TextDocumentUtil
java.lang.Object
com.pnfsoftware.jeb.core.output.text.TextDocumentUtil
Utility methods for
ITextDocument and ITextDocumentPart.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuilderbuildText(ITextDocument doc) Build the text buffer held in a text document.static StringBuilderbuildText(ITextDocumentPart part) Build the text buffer held in a document part.static StringBuilderbuildText(ITextDocumentPart part, int maxLineCount) Build the text buffer held in a document part.static StringBuilderbuildText(ITextDocument doc, int maxLineCount) Build the text buffer held in a text document.static StringgetText(ITextDocument doc) Get the text buffer of a text document.
-
Method Details
-
getText
Get the text buffer of a text document.- Parameters:
doc- source document- Returns:
- the complete textual contents of the document
-
buildText
Build the text buffer held in a text document.- Parameters:
doc- source document- Returns:
- a newly built buffer containing the document text
-
buildText
Build the text buffer held in a text document.- Parameters:
doc- source documentmaxLineCount- maximum number of lines to include- Returns:
- a newly built buffer containing the requested document text
-
buildText
Build the text buffer held in a document part.- Parameters:
part- source document part- Returns:
- a newly built buffer containing the part text
-
buildText
Build the text buffer held in a document part.- Parameters:
part- source document partmaxLineCount- maximum number of lines to include- Returns:
- a newly built buffer containing the requested part text
-