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
IOExceptionpublic void readFrom(Reader in, boolean closeReader) throws IOException
IOExceptionpublic void writeTo(Writer out, boolean closeWriter) throws IOException
IOExceptionpublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic boolean existBookmark(String name)
public Bookmark searchBookmark(String name) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic void appendTableRow(String bookmarkTableEnd) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic void setBookmarkContent(String bookmark, String text, boolean removeBookmark) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic void setBookmarkContent(String bookmark, String text) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic void setBookmarkContent(String bookmark, Text textparts, boolean removeBookmark) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic void setBookmarkContent(String bookmark, Text textparts) throws BookmarkNotFoundException
BookmarkNotFoundExceptionpublic 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.