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 StringBuilder
buildText
(ITextDocument doc) Build the text buffer held in a text document.static StringBuilder
buildText
(ITextDocumentPart part) Build the text buffer held in a document part.static StringBuilder
buildText
(ITextDocumentPart part, int maxLineCount) Build the text buffer held in a document part.static StringBuilder
buildText
(ITextDocument doc, int maxLineCount) Build the text buffer held in a text document.static String
getText
(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:
-