Class TextDocumentUtil
java.lang.Object
com.pnfsoftware.jeb.core.output.text.TextDocumentUtil
Utility methods for
ITextDocument and ITextDocumentPart.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
TextDocumentUtil
public TextDocumentUtil()
-
-
Method Details
-
getText
Get the text buffer of a text document.- Parameters:
doc-- Returns:
-
buildText
Build the text buffer held in a text document.- Parameters:
doc-- Returns:
-
buildText
Build the text buffer held in a text document.- Parameters:
doc-maxLineCount-- Returns:
-
buildText
Build the text buffer held in a document part.- Parameters:
part-- Returns:
-
buildText
Build the text buffer held in a document part.- Parameters:
part-maxLineCount-- Returns:
-