public class IterateOverMbox
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.nio.charset.CharsetEncoder |
ENCODER |
| Constructor and Description |
|---|
IterateOverMbox() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
private static java.lang.String |
messageSummary(java.io.InputStream messageBytes)
Parse a message and return a simple
String representation of some important fields. |
private static void |
saveMessageToFile(int count,
java.nio.CharBuffer buf) |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprivate static void saveMessageToFile(int count,
java.nio.CharBuffer buf)
throws java.io.IOException
java.io.IOExceptionprivate static java.lang.String messageSummary(java.io.InputStream messageBytes)
throws java.io.IOException,
MimeException
String representation of some important fields.messageBytes - the message as InputStreamjava.io.IOExceptionMimeException