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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createFromFile
public static TextDocument createFromFile(File f)
throws IOException
- Throws:
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(String s)
throws IOException
- Throws:
IOException
createEmpty
public static TextDocument createEmpty(String s,
XMLFormatVersion ns)
throws IOException
- Throws:
IOException
getParagraph
public final Paragraph getParagraph(int i)
getParagraphCount
public final int getParagraphCount()
getCharacterContent
public final 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)
Copyright © 2010 jOpenDocument All Rights Reserved.