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
InputStream over a MimeMessage . |
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.MessagingException
public MimeMessageInputStream(javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException
MimeMessageInputStream(MimeMessage, boolean)
javax.mail.MessagingException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.