public class EMLParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Properties |
properties |
protected javax.mail.Session |
session |
| Constructor and Description |
|---|
EMLParser() |
| Modifier and Type | Method and Description |
|---|---|
static EMLParser |
create() |
protected javax.mail.Session |
createSession(java.util.Properties properties)
Creates new session with or without custom properties.
|
EMLParser |
defaultSession()
Uses default session.
|
protected void |
initProperties() |
ReceivedEmail |
parse(byte[] content)
Parses EML with provided EML content.
|
ReceivedEmail |
parse(java.io.File emlFile)
Starts EML parsing with provided EML file.
|
protected ReceivedEmail |
parse(java.io.InputStream emlContentInputStream)
Parses the EML content.
|
ReceivedEmail |
parse(java.lang.String emlContent)
Parses EML with provided EML content.
|
ReceivedEmail |
parse(java.lang.String emlContent,
java.lang.String charset)
Parses EML with provided EML content.
|
EMLParser |
session(javax.mail.Session session)
Assigns custom session.
|
EMLParser |
set(java.util.Properties properties)
Copies properties from given set.
|
EMLParser |
set(java.lang.String name,
java.lang.String value)
Sets property for the session.
|
protected javax.mail.Session session
protected java.util.Properties properties
public static EMLParser create()
public EMLParser session(javax.mail.Session session)
public EMLParser defaultSession()
public EMLParser set(java.util.Properties properties)
public EMLParser set(java.lang.String name, java.lang.String value)
public ReceivedEmail parse(java.lang.String emlContent, java.lang.String charset) throws java.io.UnsupportedEncodingException, javax.mail.MessagingException
java.io.UnsupportedEncodingExceptionjavax.mail.MessagingExceptionpublic ReceivedEmail parse(java.lang.String emlContent) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic ReceivedEmail parse(byte[] content) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic ReceivedEmail parse(java.io.File emlFile) throws java.io.FileNotFoundException, javax.mail.MessagingException
java.io.FileNotFoundExceptionjavax.mail.MessagingExceptionprotected ReceivedEmail parse(java.io.InputStream emlContentInputStream) throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected void initProperties()
protected javax.mail.Session createSession(java.util.Properties properties)
Copyright © 2003-2013 Jodd Team