com.lowagie.text.rtf.parser.destinations

Class RtfDestinationDocument

public final class RtfDestinationDocument extends RtfDestination implements RtfPropertyListener

RtfDestinationDocument handles data destined for the document destination

Since: 2.1.0

Author: Howard Shank (hgshank@yahoo.com)

Field Summary
StringBufferbuffer
intconversionType
Indicates the parser action.
static ListCONVERT_IGNORED_CTRLWORDS
Documentdoc
The iText Document object.
ParagraphiTextParagraph
static ListIMPORT_IGNORED_CTRLWORDS
RtfDocumentrtfDoc
The RtfDocument object.
inttableLevel
Indicates the current table level being processed
Constructor Summary
RtfDestinationDocument()
RtfDestinationDocument(RtfParser parser)
Constructs a new RtfDestinationDocument using the parameters to initialize the object.
Method Summary
voidaddParagraphToDocument()
voidafterPropertyChange(String propertyName)
voidbeforePropertyChange(String propertyName)
booleancloseDestination()
protected voidfinalize()
booleanhandleCharacter(int ch)
booleanhandleCloseGroup()
booleanhandleControlWord(RtfCtrlWordData ctrlWordData)
booleanhandleOpenGroup()
booleanhandleOpeningSubGroup()
voidsetParser(RtfParser parser)
voidsetToDefaults()
voidwriteBuffer()
Write the accumulated buffer to the destination.
voidwriteText(String value)
Write the string value to the destination.

Field Detail

buffer

private StringBuffer buffer

conversionType

private int conversionType
Indicates the parser action. Import or Conversion.

See Also: TYPE_UNIDENTIFIED TYPE_CONVERT TYPE_IMPORT_FRAGMENT TYPE_IMPORT_FULL

CONVERT_IGNORED_CTRLWORDS

private static final List CONVERT_IGNORED_CTRLWORDS

doc

private Document doc
The iText Document object.

See Also: Document

iTextParagraph

private Paragraph iTextParagraph

IMPORT_IGNORED_CTRLWORDS

private static final List IMPORT_IGNORED_CTRLWORDS

rtfDoc

private RtfDocument rtfDoc
The RtfDocument object.

See Also: RtfDocument

tableLevel

private int tableLevel
Indicates the current table level being processed

Constructor Detail

RtfDestinationDocument

public RtfDestinationDocument()

RtfDestinationDocument

public RtfDestinationDocument(RtfParser parser)
Constructs a new RtfDestinationDocument using the parameters to initialize the object.

Parameters: parser an RtfParser.

Method Detail

addParagraphToDocument

private void addParagraphToDocument()

afterPropertyChange

public void afterPropertyChange(String propertyName)

beforePropertyChange

public void beforePropertyChange(String propertyName)

closeDestination

public boolean closeDestination()

finalize

protected void finalize()

handleCharacter

public boolean handleCharacter(int ch)

handleCloseGroup

public boolean handleCloseGroup()

handleControlWord

public boolean handleControlWord(RtfCtrlWordData ctrlWordData)

handleOpenGroup

public boolean handleOpenGroup()

handleOpeningSubGroup

public boolean handleOpeningSubGroup()

setParser

public void setParser(RtfParser parser)

setToDefaults

public void setToDefaults()

writeBuffer

private void writeBuffer()
Write the accumulated buffer to the destination. Used for direct content

writeText

private void writeText(String value)
Write the string value to the destination. Used for direct content

Parameters: value