Package com.logicaldoc.core.parser
Class RarParser
- java.lang.Object
- 
- com.logicaldoc.core.parser.AbstractParser
- 
- com.logicaldoc.core.parser.RarParser
 
 
- 
- All Implemented Interfaces:
- Parser
 
 public class RarParser extends AbstractParser Class for parsing rar files.- Since:
- 8.7.1
- Author:
- Marco Meschieri - LogicalDOC
 
- 
- 
Constructor SummaryConstructors Constructor Description RarParser()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountPages(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, String filename, String encoding, Locale locale, String tenant, Document document, String fileVersion, StringBuffer content)- 
Methods inherited from class com.logicaldoc.core.parser.AbstractParserparse, parse, parse, parse
 
- 
 
- 
- 
- 
Method Detail- 
internalParsepublic void internalParse(InputStream input, String filename, String encoding, Locale locale, String tenant, Document document, String fileVersion, StringBuffer content) throws Exception - Throws:
- Exception
 
 - 
countPagespublic int countPages(InputStream input, String filename) The number of pages is the number entries- Specified by:
- countPagesin interface- Parser
- Overrides:
- countPagesin class- AbstractParser
- Parameters:
- input- binary content from which to extract the text
- filename- name of the file
- Returns:
- the number of pages
 
 - 
countPagespublic int countPages(File input, String filename) The number of pages is the number entries- Specified by:
- countPagesin interface- Parser
- Overrides:
- countPagesin class- AbstractParser
- Parameters:
- input- the file
- filename- name of the file
- Returns:
- the number of pages
 
 
- 
 
-