Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » document » [javadoc | source]
com.lowagie.text.rtf.document
public class: RtfDocument [javadoc | source]
java.lang.Object
   com.lowagie.text.rtf.RtfElement
      com.lowagie.text.rtf.document.RtfDocument

All Implemented Interfaces:
    RtfBasicElement

The RtfDocument stores all document related data and also the main data stream. INTERNAL CLASS - NOT TO BE USED DIRECTLY
Fields inherited from com.lowagie.text.rtf.RtfElement:
document,  inTable,  inHeader
Constructor:
 public RtfDocument() 
Method from com.lowagie.text.rtf.document.RtfDocument Summary:
add,   filterSpecialChar,   getAutogenerateTOCEntries,   getDocumentHeader,   getDocumentSettings,   getLastElementWritten,   getMapper,   getRandomInt,   open,   outputDebugLinebreak,   setAutogenerateTOCEntries,   writeContent,   writeDocument
Methods from com.lowagie.text.rtf.RtfElement:
intToByteArray,   isInTable,   setInHeader,   setInTable,   setRtfDocument,   writeContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.document.RtfDocument Detail:
 public  void add(RtfBasicElement element) 
    Adds an element to the rtf document
 public  void filterSpecialChar(OutputStream out,
    String str,
    boolean useHex,
    boolean softLineBreaks) throws IOException 
    Writes the given string to the given OutputStream encoding the string characters.
 public boolean getAutogenerateTOCEntries() 
    Get whether to automatically generate table of contents entries
 public RtfDocumentHeader getDocumentHeader() 
    Gets the RtfDocumentHeader of this RtfDocument
 public RtfDocumentSettings getDocumentSettings() 
    Gets the RtfDocumentSettings that specify how the rtf document is generated.
 public RtfBasicElement getLastElementWritten() 
    Gets the last RtfBasicElement that was directly added to the RtfDocument.
 public RtfMapper getMapper() 
    Gets the RtfMapper object of this RtfDocument
 public int getRandomInt() 
    Generates a random integer that is unique with respect to the document. Will not return a number between -1 and -5 because some values in that range are invalid.
 public  void open() 
    Opens the RtfDocument and initializes the data cache. If the data cache is set to CACHE_DISK, but the cache cannot be initialized then the memory cache is used.
 public final  void outputDebugLinebreak(OutputStream result) throws IOException 
    Helper method outputs linebreak in document if debugging is turned on.
 public  void setAutogenerateTOCEntries(boolean autogenerate) 
    Whether to automagically generate table of contents entries when adding Chapters or Sections.
 public  void writeContent(OutputStream out) throws IOException 
    unused
 public  void writeDocument(OutputStream out) 
    Writes the document