Package com.logicaldoc.core.parser
Class ZipParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.ZipParser
- All Implemented Interfaces:
- Parser
Class for parsing zip files.
- Since:
- 3.5
- Author:
- Michael Scholz, Alessandro Gasparini - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcountPages(File input, String filename) The number of pages is the number entriesintcountPages(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.AbstractParserparse, parse, parse, parse
- 
Constructor Details- 
ZipParserpublic ZipParser()
 
- 
- 
Method Details- 
internalParsepublic void internalParse(InputStream input, ParseParameters parameters, StringBuilder content) throws IOException, ParsingException - Throws:
- IOException
- ParsingException
 
- 
countPagesDescription copied from interface:ParserCounts the number of pages of the given binary document.- 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
 
- 
countPagesThe 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
 
 
-