Package com.logicaldoc.core.parser
Class RarParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.RarParser
- All Implemented Interfaces:
Parser
Class for parsing rar files.
- Since:
- 8.7.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountPages(File input, String filename) The number of pages is the number entriesintcountPages(InputStream input, String filename) The number of pages is the number entriesvoidinternalParse(InputStream input, ParseParameters parameters, StringBuilder content) Methods inherited from class com.logicaldoc.core.parser.AbstractParser
parse, parse, parse, parse
-
Constructor Details
-
RarParser
public RarParser()
-
-
Method Details
-
internalParse
public void internalParse(InputStream input, ParseParameters parameters, StringBuilder content) throws ParsingException, IOException - Throws:
ParsingExceptionIOException
-
countPages
The number of pages is the number entries- 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
The number of pages is the number entries- Specified by:
countPagesin interfaceParser- Overrides:
countPagesin classAbstractParser- Parameters:
input- the filefilename- name of the file- Returns:
- the number of pages
-