public class MimeMessageInputStream extends InputStream
InputStream over an MimeMessage| Constructor and Description | 
|---|
| MimeMessageInputStream(javax.mail.internet.MimeMessage message)Use true as tryCast parameter
 
  MimeMessageInputStream(MimeMessage, boolean) | 
| MimeMessageInputStream(javax.mail.internet.MimeMessage message,
                      boolean tryCast)Provide an  InputStreamover aMimeMessage. | 
public MimeMessageInputStream(javax.mail.internet.MimeMessage message,
                      boolean tryCast)
                       throws javax.mail.MessagingException
InputStream over a MimeMessage.message - the message to wraptryCast - try to cast the MimeMessage to
            MimeMessageCopyOnWriteProxy /
            MimeMessageWrapper to do some optimized processing if
            possiblejavax.mail.MessagingExceptionpublic MimeMessageInputStream(javax.mail.internet.MimeMessage message)
                       throws javax.mail.MessagingException
MimeMessageInputStream(MimeMessage, boolean)javax.mail.MessagingExceptionpublic int read()
         throws IOException
read in class InputStreamIOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
              throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] b,
       int off,
       int len)
         throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
         throws IOException
read in class InputStreamIOExceptionpublic void reset()
           throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
          throws IOException
skip in class InputStreamIOExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.