public abstract class AbstractCoreRTFParser extends Object
RTFIndentHandler,
AbstractDefaultRTFParser| Constructor and Description |
|---|
AbstractCoreRTFParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
endGroup(char endGroupCharacter,
int level)
Event end group.
|
protected int |
getLevel()
Return level of current group.
|
protected abstract void |
handleKeyword(String content)
Event RTF keyword.
|
void |
parse(InputStream inputStream)
Parse RTF Input stream.
|
void |
parse(Reader reader)
Parse RTF Reader stream.
|
protected abstract void |
startGroup(char startGroupCharacter,
int level)
Event start group.
|
public void parse(Reader reader) throws IOException
reader - RTF source reader to parse.IOExceptionpublic void parse(InputStream inputStream) throws IOException
input - stream RTF source reader to parse.IOExceptionprotected int getLevel()
protected abstract void startGroup(char startGroupCharacter,
int level)
throws IOException
startGroupCharacter - start group character {.level - of current group.IOExceptionprotected abstract void endGroup(char endGroupCharacter,
int level)
throws IOException
endGroupCharacter - end group character }.level - of current group.IOExceptionprotected abstract void handleKeyword(String content) throws IOException
content - RTF keyword.IOExceptionCopyright © 2020 Mice S.r.l. All rights reserved.