Package com.logicaldoc.core.parser
Class TarParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.TarParser
- All Implemented Interfaces:
- Parser
Class for parsing tar files.
- Since:
- 8.7.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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) The number of pages is the number entriesvoidinternalParse(InputStream input, ParseParameters parameters, StringBuilder content) Methods inherited from class com.logicaldoc.core.parser.AbstractParserparse, parse, parse, parse
- 
Constructor Details- 
TarParserpublic TarParser()
 
- 
- 
Method Details- 
internalParsepublic void internalParse(InputStream input, ParseParameters parameters, StringBuilder content) throws IOException, ParsingException - Throws:
- IOException
- ParsingException
 
- 
countPagesThe 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
 
- 
countPagesDescription 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 interface- Parser
- Overrides:
- countPagesin class- AbstractParser
- Parameters:
- input- the file
- filename- name of the file
- Returns:
- the number of pages
 
 
-