org.apache.tika.parser.mail
Class RFC822Parser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.mail.RFC822Parser
- All Implemented Interfaces:
- Serializable, org.apache.tika.parser.Parser
public class RFC822Parser
- extends org.apache.tika.parser.AbstractParser
Uses apache-mime4j to parse emails. Each part is treated with the
corresponding parser and displayed within elements.
A MimeEntityConfig object can be passed in the parsing context
to better control the parsing process.
- Author:
- jnioche@digitalpebble.com
- See Also:
- Serialized Form
|
Method Summary |
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context)
|
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context)
|
| Methods inherited from class org.apache.tika.parser.AbstractParser |
parse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RFC822Parser
public RFC822Parser()
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
parse
public void parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context)
throws IOException,
SAXException,
org.apache.tika.exception.TikaException
- Throws:
IOException
SAXException
org.apache.tika.exception.TikaException
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.