PlainTextDocument

PlainTextDocument

Overview

PlainTextDocument is a class in Aspose.Words FOSS for Java.

Allows to extract plain-text representation of the document’s content.

Edition status of its 7 listed members (a property and its accessor methods are listed separately, overloads once): 7 not yet exercised by a verified example.

This class declares 7 methods for PlainTextDocument objects in Java programs. Available methods include: PlainTextDocument, getBuiltInDocumentProperties, getCustomDocumentProperties, getText. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: builtInDocumentProperties, customDocumentProperties, text.

Properties

NameTypeAccessDescription
textStringReadGets textual content of the document concatenated as a string.
builtInDocumentPropertiesBuiltInDocumentPropertiesReadGets BuiltInDocumentProperties of the document.
customDocumentPropertiesCustomDocumentPropertiesReadGets CustomDocumentProperties of the document.

Methods

SignatureDescription
PlainTextDocument(fileName: String)Creates a plain text document from a file.
PlainTextDocument(fileName: String, loadOptions: LoadOptions)Creates a plain text document from a file.
PlainTextDocument(stream: java.io.InputStream)Creates a new PlainTextDocument instance from stream.
PlainTextDocument(stream: java.io.InputStream, loadOptions: LoadOptions)Creates a new PlainTextDocument instance from stream, loadOptions.
getText() → StringGets textual content of the document concatenated as a string.
getBuiltInDocumentProperties() → BuiltInDocumentPropertiesGets BuiltInDocumentProperties of the document.
getCustomDocumentProperties() → CustomDocumentPropertiesGets CustomDocumentProperties of the document.

See Also