Package com.logicaldoc.core.parser
Class TXTParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.TXTParser
- All Implemented Interfaces:
- Parser
Class for parsing text (*.txt) files.
- Since:
- 3.5
- Author:
- Michael Scholz, Alessandro Gasparini - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidinternalParse(InputStream input, ParseParameters parameters, StringBuilder content) parse(File file, String filename, String encoding, Locale locale, String tenant, Document document, String fileVersion) Same asParser.parse(InputStream, ParseParameters), but use this when you have a file rather than a stream.Methods inherited from class com.logicaldoc.core.parser.AbstractParsercountPages, countPages, parse, parse, parse
- 
Constructor Details- 
TXTParserpublic TXTParser()
 
- 
- 
Method Details- 
parsepublic String parse(File file, String filename, String encoding, Locale locale, String tenant, Document document, String fileVersion) Description copied from interface:ParserSame asParser.parse(InputStream, ParseParameters), but use this when you have a file rather than a stream.- Specified by:
- parsein interface- Parser
- Overrides:
- parsein class- AbstractParser
- Parameters:
- file- the file
- filename- name of the file
- encoding- character encoding
- locale- the locale
- tenant- name of the tenant
- document- the document the file belongs to (optional)
- fileVersion- the file version being processed (optional)
- Returns:
- the extracted text
 
- 
internalParse
 
-