|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.document.RtfDocument
public class RtfDocument
The RtfDocument stores all document related data and also the main data stream. INTERNAL CLASS - NOT TO BE USED DIRECTLY
| Field Summary |
|---|
| Fields inherited from class com.lowagie.text.rtf.RtfElement |
|---|
document, inHeader, inTable |
| Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
|---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
| Constructor Summary | |
|---|---|
RtfDocument()
The default constructor for a RtfDocument |
|
| Method Summary | |
|---|---|
void |
add(RtfBasicElement element)
Adds an element to the rtf document |
void |
filterSpecialChar(OutputStream out,
String str,
boolean useHex,
boolean softLineBreaks)
Writes the given string to the given OutputStream encoding the string characters. |
boolean |
getAutogenerateTOCEntries()
Get whether to automatically generate table of contents entries |
RtfDocumentHeader |
getDocumentHeader()
Gets the RtfDocumentHeader of this RtfDocument |
RtfDocumentSettings |
getDocumentSettings()
Gets the RtfDocumentSettings that specify how the rtf document is generated. |
RtfBasicElement |
getLastElementWritten()
Gets the last RtfBasicElement that was directly added to the RtfDocument. |
RtfMapper |
getMapper()
Gets the RtfMapper object of this RtfDocument |
int |
getRandomInt()
Generates a random integer that is unique with respect to the document. |
void |
open()
Opens the RtfDocument and initializes the data cache. |
void |
outputDebugLinebreak(OutputStream result)
Helper method outputs linebreak in document if debugging is turned on. |
void |
setAutogenerateTOCEntries(boolean autogenerate)
Whether to automagically generate table of contents entries when adding Chapters or Sections. |
void |
writeContent(OutputStream out)
unused |
void |
writeDocument(OutputStream out)
Writes the document |
| Methods inherited from class com.lowagie.text.rtf.RtfElement |
|---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtfDocument()
| Method Detail |
|---|
public void writeContent(OutputStream out)
throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementout - The OutputStream to write the content to
IOExceptionpublic void writeDocument(OutputStream out)
out - The OutputStream to write the RTF document to.public void open()
public void add(RtfBasicElement element)
element - The element to addpublic RtfMapper getMapper()
public int getRandomInt()
public RtfDocumentHeader getDocumentHeader()
public void filterSpecialChar(OutputStream out,
String str,
boolean useHex,
boolean softLineBreaks)
throws IOException
OutputStream encoding the string characters.
out - destination OutputStreamstr - string to writeuseHex - if true hex encoding characters is preferred to unicode encoding if possiblesoftLineBreaks - if true return characters are written as soft line breaks
IOExceptionpublic void setAutogenerateTOCEntries(boolean autogenerate)
autogenerate - Whether to automatically generate TOC entriespublic boolean getAutogenerateTOCEntries()
public RtfDocumentSettings getDocumentSettings()
public RtfBasicElement getLastElementWritten()
public final void outputDebugLinebreak(OutputStream result)
throws IOException
result - the OutputStream to write the linebreak to.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||