Class Mime4JWorkaround
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.Mime4JWorkaround
Copy code from org.apache.james.mime4j.message.DefaultMessageBuilder.parseMessage().
Alter said code to use Mime4JWorkaroundBinaryEntityBuilder instead of EntityBuilder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.james.mime4j.dom.Message
This is a rough copy of DefaultMessageBuilder.parseMessage() modified to use a Mime4JWorkaround as the contentHandler instead of an EntityBuilder.
-
Constructor Details
-
Mime4JWorkaround
public Mime4JWorkaround()
-
-
Method Details
-
parseMessage
public static org.apache.james.mime4j.dom.Message parseMessage(InputStream is) throws IOException, org.apache.james.mime4j.MimeIOException This is a rough copy of DefaultMessageBuilder.parseMessage() modified to use a Mime4JWorkaround as the contentHandler instead of an EntityBuilder.- Parameters:
is
-- Returns:
- Throws:
IOException
org.apache.james.mime4j.MimeIOException
- See Also:
-
DefaultMessageBuilder.parseMessage(java.io.InputStream)
-