public class RTFIndentHandler extends AbstractCoreRTFParser
| Constructor and Description |
|---|
RTFIndentHandler(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endGroup(char endGroupCharacter,
int level)
Indent end group.
|
protected void |
handleKeyword(String content)
Event RTF keyword.
|
static void |
main(String[] args)
Indent RTF source filename (arg[0])
and save RTF indented content into RTF file
target indent_filename
|
protected void |
startGroup(char startGroupCharacter,
int level)
Indent start group.
|
getLevel, parse, parsepublic RTFIndentHandler(Writer writer)
protected void handleKeyword(String content) throws IOException
AbstractCoreRTFParserhandleKeyword in class AbstractCoreRTFParsercontent - RTF keyword.IOExceptionprotected void startGroup(char startGroupCharacter,
int level)
throws IOException
startGroup in class AbstractCoreRTFParserstartGroupCharacter - start group character {.level - of current group.IOExceptionprotected void endGroup(char endGroupCharacter,
int level)
throws IOException
endGroup in class AbstractCoreRTFParserendGroupCharacter - end group character }.level - of current group.IOExceptionpublic static void main(String[] args)
args[0] - rtf filename to indent.Copyright © 2020 Mice S.r.l. All rights reserved.