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