|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.rtf.parser.destinations.RtfDestination
com.lowagie.text.rtf.parser.destinations.RtfDestinationDocument
public final class RtfDestinationDocument
RtfDestinationDocument handles data destined for the document destination
| Field Summary | |
|---|---|
private StringBuffer |
buffer
|
private int |
conversionType
Indicates the parser action. |
private static List |
CONVERT_IGNORED_CTRLWORDS
|
private Document |
doc
The iText Document object. |
private static List |
IMPORT_IGNORED_CTRLWORDS
|
private Paragraph |
iTextParagraph
|
private RtfDocument |
rtfDoc
The RtfDocument object. |
private int |
tableLevel
Indicates the current table level being processed |
| Fields inherited from class com.lowagie.text.rtf.parser.destinations.RtfDestination |
|---|
lastCtrlWord, modified, rtfParser |
| Constructor Summary | |
|---|---|
RtfDestinationDocument()
|
|
RtfDestinationDocument(RtfParser parser)
Constructs a new RtfDestinationDocument using
the parameters to initialize the object. |
|
| Method Summary | |
|---|---|
private void |
addParagraphToDocument()
|
void |
afterPropertyChange(String propertyName)
|
void |
beforePropertyChange(String propertyName)
|
boolean |
closeDestination()
Clean up when destination is closed. |
protected void |
finalize()
|
boolean |
handleCharacter(int ch)
Handle text for this destination |
boolean |
handleCloseGroup()
Clean up when group is closed. |
boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination |
boolean |
handleOpenGroup()
Setup when group is opened. |
boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group |
void |
setParser(RtfParser parser)
Set the parser to use with the RtfDestination object. |
void |
setToDefaults()
Method to set this object to the default values. |
private void |
writeBuffer()
Write the accumulated buffer to the destination. |
private void |
writeText(String value)
Write the string value to the destination. |
| Methods inherited from class com.lowagie.text.rtf.parser.destinations.RtfDestination |
|---|
addListener, afterCharacter, afterCtrlWord, beforeCharacter, beforeCtrlWord, getNewTokeniserState, isModified, onCharacter, onCloseGroup, onCtrlWord, onOpenGroup, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private RtfDocument rtfDoc
RtfDocumentprivate Document doc
Documentprivate StringBuffer buffer
private int conversionType
RtfParser.TYPE_UNIDENTIFIED,
RtfParser.TYPE_CONVERT,
RtfParser.TYPE_IMPORT_FRAGMENT,
RtfParser.TYPE_IMPORT_FULLprivate int tableLevel
private static final List IMPORT_IGNORED_CTRLWORDS
private static final List CONVERT_IGNORED_CTRLWORDS
private Paragraph iTextParagraph
| Constructor Detail |
|---|
public RtfDestinationDocument()
public RtfDestinationDocument(RtfParser parser)
RtfDestinationDocument using
the parameters to initialize the object.
parser - an RtfParser.| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void setParser(RtfParser parser)
RtfDestination
setParser in class RtfDestinationparser - The RtfParser object.public boolean closeDestination()
RtfDestination
closeDestination in class RtfDestinationpublic boolean handleOpenGroup()
RtfDestination
handleOpenGroup in class RtfDestinationpublic boolean handleOpeningSubGroup()
RtfDestination
handleOpeningSubGroup in class RtfDestinationpublic boolean handleCloseGroup()
RtfDestination
handleCloseGroup in class RtfDestinationpublic boolean handleCharacter(int ch)
RtfDestination
handleCharacter in class RtfDestinationpublic boolean handleControlWord(RtfCtrlWordData ctrlWordData)
RtfDestination
handleControlWord in class RtfDestinationctrlWordData - The control word and parameter information object
private void writeBuffer()
private void writeText(String value)
value - public void setToDefaults()
RtfDestination
setToDefaults in class RtfDestinationpublic void afterPropertyChange(String propertyName)
afterPropertyChange in interface RtfPropertyListenerpublic void beforePropertyChange(String propertyName)
beforePropertyChange in interface RtfPropertyListenerprivate void addParagraphToDocument()
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||