Package com.logicaldoc.parser
Class EMLParser
- java.lang.Object
-
- com.logicaldoc.core.parser.AbstractParser
-
- com.logicaldoc.parser.EMLParser
-
- All Implemented Interfaces:
com.logicaldoc.core.parser.Parser
public class EMLParser extends com.logicaldoc.core.parser.AbstractParser
Parses Mozilla .eml files- Since:
- 4.6
- Author:
- Alessandro Gasparini - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description EMLParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countPages(InputStream input, String filename)
Each attachment is considered as an additional pagevoid
internalParse(InputStream input, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion, StringBuffer output)
boolean
isExtractHeaders()
String
parse(javax.mail.Message message)
void
parse(javax.mail.Message message, StringBuffer output)
void
setExtractHeaders(boolean extractHeaders)
-
-
-
Method Detail
-
isExtractHeaders
public boolean isExtractHeaders()
-
setExtractHeaders
public void setExtractHeaders(boolean extractHeaders)
-
parse
public String parse(javax.mail.Message message)
-
parse
public void parse(javax.mail.Message message, StringBuffer output)
-
internalParse
public void internalParse(InputStream input, String filename, String encoding, Locale locale, String tenant, com.logicaldoc.core.document.Document document, String fileVersion, StringBuffer output)
-
countPages
public int countPages(InputStream input, String filename)
Each attachment is considered as an additional page- Specified by:
countPages
in interfacecom.logicaldoc.core.parser.Parser
- Overrides:
countPages
in classcom.logicaldoc.core.parser.AbstractParser
-
-