public class RTFDocumentHandler extends AbstractDefaultRTFParser implements IRTFDocumentParser
RTFDocument| Constructor and Description |
|---|
RTFDocumentHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endAnnotation() |
protected void |
endBookmark(String content)
Implement endBookmark to end RTF bookmark element
|
protected void |
endField()
End field, compute name of field and update current RTF element to parent
of field/
|
protected void |
endGroup(char endGroupCharacter,
int level)
Implement endGroup event to add end group character to last row, last
bookmark... parsed otherwise into current RTF element.
|
protected void |
endRow(String content)
Implement endRow to end RTF row element into current RTF element parsed.
|
protected void |
endUserProperty(String content)
Event end user property.
|
RTFDocument |
getRTFDocument()
Return RTFDocument populated by RTF handler.
|
protected void |
handleText(String content)
Implement handleText to add RTF content (different of RTF keyword) into
current RTF element.
|
protected void |
inTable(String content)
Implement inTable - if currentElement is not row, then put it and the
preceeding text from the last element to a new row, and set it as current
element.
|
protected void |
startAnnotation(String content)
Event annotation.
|
protected void |
startBookmark(String content)
Implement startBookmark to start and add RTF bookmark element into
current RTF element parsed.
|
protected void |
startField(String content)
Implement startField to start and add RTF field element into current RTF
element parsed.
|
protected void |
startGroup(char startGroupCharacter,
int level)
Implement startGroup event to create RTF root element RTFDocument on
first level and store start group character.
|
protected void |
startPage(String content)
Implement startPage to start and add RTF page break element into current
RTF element parsed.
|
protected void |
startRow(String content)
Implement startRow to start and add RTF row element into current RTF
element parsed.
|
protected void |
startUserProperty(String content)
Event start user property.
|
handleKeywordgetLevel, parse, parseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparse, parseprotected void startGroup(char startGroupCharacter,
int level)
throws IOException
startGroup in class AbstractCoreRTFParserstartGroupCharacter - start group character {.level - of current group.IOException - the exception.protected void endGroup(char endGroupCharacter,
int level)
throws IOException
endGroup in class AbstractCoreRTFParserendGroupCharacter - end group character }.level - of current group.IOException - the exception.protected void startRow(String content) throws IOException
startRow in class AbstractDefaultRTFParsercontent - RTF start row keyword \trowd.IOException - the exception.protected void endRow(String content) throws IOException
endRow in class AbstractDefaultRTFParsercontent - RTF end row keyword \row.IOException - the exception.protected void inTable(String content) throws IOException
inTable in class AbstractDefaultRTFParsercontent - RTF in table keyword \intblIOException - the exception.protected void startField(String content) throws IOException
startField in class AbstractDefaultRTFParsercontent - RTF start field keyword \field.IOException - the exception.protected void endField()
throws IOException
IOException - the exception.protected void startBookmark(String content) throws IOException
startBookmark in class AbstractDefaultRTFParsercontent - RTF start bookmark keyword \bkmstart.IOException - the exception.protected void endBookmark(String content) throws IOException
endBookmark in class AbstractDefaultRTFParsercontent - RTF end bookmark keyword \bkmend.IOException - the exception.protected void startPage(String content) throws IOException
startPage in class AbstractDefaultRTFParsercontent - RTF start page keyword \page.IOException - the exception.protected void startUserProperty(String content) throws IOException
AbstractDefaultRTFParserstartUserProperty in class AbstractDefaultRTFParsercontent - RTF start user property keyword \propname.IOException - the exception.protected void endUserProperty(String content) throws IOException
AbstractDefaultRTFParserendUserProperty in class AbstractDefaultRTFParsercontent - RTF end user property keyword \staticval.IOException - the exception.protected void startAnnotation(String content) throws IOException
AbstractDefaultRTFParserstartAnnotation in class AbstractDefaultRTFParsercontent - RTF annotation keyword \annotation.IOException - the exception.protected void endAnnotation()
protected void handleText(String content) throws IOException
handleText in class AbstractDefaultRTFParsercontent - RTF code.IOException - the exception.public RTFDocument getRTFDocument()
getRTFDocument in interface IRTFDocumentParserCopyright © 2020 Mice S.r.l. All rights reserved.