| java.lang.Object java.io.InputStream org.apache.james.mailrepository.MessageInputStream
MessageInputStream | final class MessageInputStream extends InputStream (Code) | | This class provides an inputStream for a Mail object.
If the Mail is larger than 4KB it uses Piped streams and a worker threads
Otherwise it simply create a temporary byte buffer and does not create
the worker thread.
Note: Javamail (or the Activation Framework) already uses a worker threads when
asked for an inputstream.
|
Constructor Summary | |
public | MessageInputStream(Mail mc, StreamRepository srep, int sizeLimit) Main constructor. |
Method Summary | |
public int | available() | public void | close() | public long | getSize() | public synchronized void | mark(int arg0) | public boolean | markSupported() | public int | read(byte[] arg0, int arg1, int arg2) | public int | read(byte[] arg0) | public int | read() | public synchronized void | reset() | public long | skip(long arg0) |
MessageInputStream | public MessageInputStream(Mail mc, StreamRepository srep, int sizeLimit) throws IOException, MessagingException(Code) | | Main constructor. If srep is not null than we are using dbfiles and we stream
the body to file and only the header to db.
|
getSize | public long getSize()(Code) | | Returns the size of the full message
|
|
|