org.jopendocument.dom.text
Class TextDocument
java.lang.Object
org.jopendocument.dom.ODDocument
org.jopendocument.dom.text.TextDocument
public class TextDocument
- extends ODDocument
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createFromFile
public static TextDocument createFromFile(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
get
public static TextDocument get(ODPackage fd)
- This method should be avoided, use
ODPackage.getTextDocument().
- Parameters:
fd - a package.
- Returns:
- the text document.
createEmpty
public static TextDocument createEmpty(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
createEmpty
public static TextDocument createEmpty(java.lang.String s,
XMLFormatVersion ns)
throws java.io.IOException
- Throws:
java.io.IOException
getParagraph
public final Paragraph getParagraph(int i)
getParagraphCount
public final int getParagraphCount()
getCharacterContent
public final java.lang.String getCharacterContent(boolean ooMode)
add
public void add(TextNode<?> p)
- Append a paragraph or a heading.
- Parameters:
p - paragraph to add.
add
public void add(TextNode<?> p,
org.jdom.Element where,
int index)