Package com.logicaldoc.core.parser
Class RTFParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.RTFParser
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
DOCParser
A parser for the Rich Text Format
- Since:
- 3.5
- Author:
- Michael Scholz, Alessandro Gasparini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountPages(File input, String filename) Same as the otherParser.countPages(InputStream, String), but use this when you have a file rather than a stream.intcountPages(InputStream input, String filename) Counts the number of pages of the given binary document.voidinternalParse(InputStream input, ParseParameters parameters, StringBuilder content) Methods inherited from class com.logicaldoc.core.parser.AbstractParser
parse, parse, parse, parse
-
Constructor Details
-
RTFParser
public RTFParser()
-
-
Method Details
-
internalParse
-
countPages
Description copied from interface:ParserCounts the number of pages of the given binary document.- Specified by:
countPagesin interfaceParser- Overrides:
countPagesin classAbstractParser- Parameters:
input- binary content from which to extract the textfilename- name of the file- Returns:
- the number of pages
-
countPages
Description copied from interface:ParserSame as the otherParser.countPages(InputStream, String), but use this when you have a file rather than a stream.- Specified by:
countPagesin interfaceParser- Overrides:
countPagesin classAbstractParser- Parameters:
input- the filefilename- name of the file- Returns:
- the number of pages
-