Package com.independentsoft.office.odf

# Class TextDocumentContent

java.lang.Object
com.independentsoft.office.odf.TextDocumentContent

public class TextDocumentContent extends Object
The Class TextDocumentContent.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TextDocumentContent​(byte[] buffer, Document mainDocument)`
  Instantiates a new text document content.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TextDocumentContent`
  `clone()`
  Creates a new object that is a deep copy of the current instance.
  `String`
  `toString()`
  Converts the value of the current TextDocumentContent object to its equivalent string representation.

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### TextDocumentContent

    public TextDocumentContent​(byte[] buffer, Document mainDocument) throws XMLStreamException
    Instantiates a new text document content.
    Parameters:
      `buffer` - the buffer
      `mainDocument` - the main document
    Throws:
      `XMLStreamException` - the xML stream exception

- ## Method Details

  - ### clone

    public TextDocumentContent clone()
    Creates a new object that is a deep copy of the current instance.
    Overrides:
      `clone` in class `Object`
    Returns:
      A new object that is a copy of this instance.

  - ### toString

    public String toString()
    Converts the value of the current TextDocumentContent object to its equivalent string representation.
    Overrides:
      `toString` in class `Object`
    Returns:
      the string