| java.lang.Object org.apache.james.core.MimeMessageUtil
MimeMessageUtil | public class MimeMessageUtil (Code) | | Utility class to provide optimized write methods for the various MimeMessage
implementations.
|
Method Summary | |
public static long | calculateMessageSize(MimeMessage message) | public static void | copyStream(InputStream in, OutputStream out) | public static InputStream | getHeadersInputStream(MimeMessage message, String[] ignoreList) | public static long | getMessageSize(MimeMessage message) | public static void | writeHeadersTo(Enumeration headers, OutputStream headerOs) | public static void | writeMessageBodyTo(MimeMessage message, OutputStream bodyOs) | public static void | writeTo(MimeMessage message, OutputStream headerOs, OutputStream bodyOs) | public static void | writeTo(MimeMessage message, OutputStream headerOs, OutputStream bodyOs, String[] ignoreList) | public static void | writeToInternal(MimeMessage message, OutputStream headerOs, OutputStream bodyOs, String[] ignoreList) |
calculateMessageSize | public static long calculateMessageSize(MimeMessage message) throws MessagingException(Code) | | Parameters: message - the calculated size throws: MessagingException - |
getHeadersInputStream | public static InputStream getHeadersInputStream(MimeMessage message, String[] ignoreList) throws MessagingException(Code) | | Parameters: message - Parameters: ignoreList - throws: MessagingException - |
getMessageSize | public static long getMessageSize(MimeMessage message) throws MessagingException(Code) | | size of full message including headers throws: MessagingException - if a problem occours while computing the message size |
writeHeadersTo | public static void writeHeadersTo(Enumeration headers, OutputStream headerOs) throws MessagingException(Code) | | Write the message headers to the given outputstream
Parameters: message - Parameters: headerOs - Parameters: ignoreList - throws: MessagingException - |
writeTo | public static void writeTo(MimeMessage message, OutputStream headerOs, OutputStream bodyOs) throws IOException, MessagingException(Code) | | Convenience method to take any MimeMessage and write the headers and body to two
different output streams
|
writeTo | public static void writeTo(MimeMessage message, OutputStream headerOs, OutputStream bodyOs, String[] ignoreList) throws IOException, MessagingException(Code) | | Convenience method to take any MimeMessage and write the headers and body to two
different output streams, with an ignore list
|
|
|