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
| Name | Type | Access | Description |
|---|---|---|---|
text | String | Read | Gets textual content of the document concatenated as a string. |
builtInDocumentProperties | BuiltInDocumentProperties | Read | Gets BuiltInDocumentProperties of the document. |
customDocumentProperties | CustomDocumentProperties | Read | Gets CustomDocumentProperties of the document. |
Methods
| Signature | Description |
|---|---|
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() → String | Gets textual content of the document concatenated as a string. |
getBuiltInDocumentProperties() → BuiltInDocumentProperties | Gets BuiltInDocumentProperties of the document. |
getCustomDocumentProperties() → CustomDocumentProperties | Gets CustomDocumentProperties of the document. |