|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rtf.parser.AbstractCoreRTFParser
net.sourceforge.rtf.parser.AbstractDefaultRTFParser
net.sourceforge.rtf.handler.RTFDocumentHandler
public class RTFDocumentHandler
RTF handler which implement AbstractDefaultRTFParser to create RTFDocument element RTF of RTF stream source.
RTFDocument| Constructor Summary | |
|---|---|
RTFDocumentHandler()
|
|
| Method Summary | |
|---|---|
protected void |
endBookmark(java.lang.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(java.lang.String content)
Implement endRow to end RTF row element into current RTF element parsed. |
protected void |
endUserProperty(java.lang.String content)
Event end user property. |
RTFDocument |
getRTFDocument()
Return RTFDocument populated by RTF handler. |
protected void |
handleText(java.lang.String content)
Implement handleText to add RTF content (different of RTF keyword) into current RTF element. |
protected void |
inTable(java.lang.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 |
startBookmark(java.lang.String content)
Implement startBookmark to start and add RTF bookmark element into current RTF element parsed. |
protected void |
startField(java.lang.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(java.lang.String content)
Implement startPage to start and add RTF page break element into current RTF element parsed. |
protected void |
startRow(java.lang.String content)
Implement startRow to start and add RTF row element into current RTF element parsed. |
protected void |
startUserProperty(java.lang.String content)
Event start user property. |
| Methods inherited from class net.sourceforge.rtf.parser.AbstractDefaultRTFParser |
|---|
handleKeyword |
| Methods inherited from class net.sourceforge.rtf.parser.AbstractCoreRTFParser |
|---|
getLevel, parse, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.rtf.IRTFDocumentParser |
|---|
parse, parse |
| Constructor Detail |
|---|
public RTFDocumentHandler()
| Method Detail |
|---|
protected void startGroup(char startGroupCharacter,
int level)
throws java.io.IOException
startGroup in class AbstractCoreRTFParserstartGroupCharacter - start group character {.level - of current group.
java.io.IOException
protected void endGroup(char endGroupCharacter,
int level)
throws java.io.IOException
endGroup in class AbstractCoreRTFParserendGroupCharacter - end group character }.level - of current group.
java.io.IOException
protected void startRow(java.lang.String content)
throws java.io.IOException
startRow in class AbstractDefaultRTFParsercontent - RTF start row keyword \trowd.
java.io.IOException
protected void endRow(java.lang.String content)
throws java.io.IOException
endRow in class AbstractDefaultRTFParsercontent - RTF end row keyword \row.
java.io.IOException
protected void inTable(java.lang.String content)
throws java.io.IOException
inTable in class AbstractDefaultRTFParsercontent - RTF in table keyword \intbl
java.io.IOException
protected void startField(java.lang.String content)
throws java.io.IOException
startField in class AbstractDefaultRTFParsercontent - RTF start field keyword \field.
java.io.IOException
protected void endField()
throws java.io.IOException
java.io.IOException
protected void startBookmark(java.lang.String content)
throws java.io.IOException
startBookmark in class AbstractDefaultRTFParsercontent - RTF start bookmark keyword \bkmstart.
java.io.IOException
protected void endBookmark(java.lang.String content)
throws java.io.IOException
endBookmark in class AbstractDefaultRTFParsercontent - RTF end bookmark keyword \bkmend.
java.io.IOException
protected void startPage(java.lang.String content)
throws java.io.IOException
startPage in class AbstractDefaultRTFParsercontent - RTF start page keyword \page.
java.io.IOException
protected void startUserProperty(java.lang.String content)
throws java.io.IOException
AbstractDefaultRTFParser
startUserProperty in class AbstractDefaultRTFParsercontent - RTF start user property keyword \propname.
java.io.IOException
protected void endUserProperty(java.lang.String content)
throws java.io.IOException
AbstractDefaultRTFParser
endUserProperty in class AbstractDefaultRTFParsercontent - RTF end user property keyword \staticval.
java.io.IOException
protected void handleText(java.lang.String content)
throws java.io.IOException
handleText in class AbstractDefaultRTFParsercontent - RTF code.
java.io.IOExceptionpublic RTFDocument getRTFDocument()
getRTFDocument in interface IRTFDocumentParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||