org.opencrx.kernel.utils.rtf
Class RTFTemplate

java.lang.Object
  extended by org.opencrx.kernel.utils.rtf.RTFTemplate

public class RTFTemplate
extends Object


Constructor Summary
RTFTemplate()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFTemplate

public RTFTemplate()
            throws IOException
Throws:
IOException
Method Detail

readFrom

public void readFrom(Reader in,
                     boolean closeReader)
              throws IOException
Throws:
IOException

writeTo

public void writeTo(Writer out,
                    boolean closeWriter)
             throws IOException
Throws:
IOException

writeTo

public void writeTo(OutputStream out)
             throws IOException
Throws:
IOException

existBookmark

public boolean existBookmark(String name)

searchBookmark

public Bookmark searchBookmark(String name)
                        throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

appendTableRow

public void appendTableRow(String bookmarkTableEnd)
                    throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

setBookmarkContent

public void setBookmarkContent(String bookmark,
                               String text,
                               boolean removeBookmark)
                        throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

setBookmarkContent

public void setBookmarkContent(String bookmark,
                               String text)
                        throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

setBookmarkContent

public void setBookmarkContent(String bookmark,
                               Text textparts,
                               boolean removeBookmark)
                        throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

setBookmarkContent

public void setBookmarkContent(String bookmark,
                               Text textparts)
                        throws BookmarkNotFoundException
Throws:
BookmarkNotFoundException

setBookmarkCheckbox

public void setBookmarkCheckbox(String bookmark,
                                boolean value)
                         throws BookmarkNotFoundException,
                                BookmarkIsNotCheckboxException
Throws:
BookmarkNotFoundException
BookmarkIsNotCheckboxException

getDocumentAsString

protected String getDocumentAsString()

getBookmarkNames

public List<String> getBookmarkNames()


This software is published under the BSD license. Copyright © 2003-2013, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.