public class RTFTemplate extends Object
Constructor and Description |
---|
RTFTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
appendTableRow(String bookmarkTableEnd) |
boolean |
existBookmark(String name) |
List<String> |
getBookmarkNames() |
protected String |
getDocumentAsString() |
void |
readFrom(Reader in,
boolean closeReader) |
Bookmark |
searchBookmark(String name) |
void |
setBookmarkCheckbox(String bookmark,
boolean value) |
void |
setBookmarkContent(String bookmark,
String text) |
void |
setBookmarkContent(String bookmark,
String text,
boolean removeBookmark) |
void |
setBookmarkContent(String bookmark,
Text textparts) |
void |
setBookmarkContent(String bookmark,
Text textparts,
boolean removeBookmark) |
void |
writeTo(OutputStream out) |
void |
writeTo(Writer out,
boolean closeWriter) |
public RTFTemplate() throws IOException
IOException
public void readFrom(Reader in, boolean closeReader) throws IOException
IOException
public void writeTo(Writer out, boolean closeWriter) throws IOException
IOException
public void writeTo(OutputStream out) throws IOException
IOException
public boolean existBookmark(String name)
public Bookmark searchBookmark(String name) throws BookmarkNotFoundException
BookmarkNotFoundException
public void appendTableRow(String bookmarkTableEnd) throws BookmarkNotFoundException
BookmarkNotFoundException
public void setBookmarkContent(String bookmark, String text, boolean removeBookmark) throws BookmarkNotFoundException
BookmarkNotFoundException
public void setBookmarkContent(String bookmark, String text) throws BookmarkNotFoundException
BookmarkNotFoundException
public void setBookmarkContent(String bookmark, Text textparts, boolean removeBookmark) throws BookmarkNotFoundException
BookmarkNotFoundException
public void setBookmarkContent(String bookmark, Text textparts) throws BookmarkNotFoundException
BookmarkNotFoundException
public void setBookmarkCheckbox(String bookmark, boolean value) throws BookmarkNotFoundException, BookmarkIsNotCheckboxException
protected String getDocumentAsString()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.