Package org.jboss.resteasy.plugins.providers.multipart

## Class Mime4JWorkaround

- java.lang.Object
- - org.jboss.resteasy.plugins.providers.multipart.Mime4JWorkaround

-     public class Mime4JWorkaround
      extends Object

  Copy code from org.apache.james.mime4j.message.DefaultMessageBuilder.parseMessage(). Alter said code to use Mime4JWorkaroundBinaryEntityBuilder instead of EntityBuilder.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Mime4JWorkaround()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static org.apache.james.mime4j.dom.Message` | `parseMessage​(InputStream is)` | This is a rough copy of DefaultMessageBuilder.parseMessage() modified to use a Mime4JWorkaround as the contentHandler instead of an EntityBuilder.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Mime4JWorkaround

          public Mime4JWorkaround()

  - ### Method Detail

    - #### 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)`