|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.james.core.MimeMessageSource | +--org.apache.james.mailrepository.MimeMessageJDBCSource
This class points to a specific message in a repository. This will return an InputStream to the JDBC field/record, possibly sequenced with the file stream.
Constructor Summary | |
MimeMessageJDBCSource(JDBCMailRepository repository,
java.lang.String key,
org.apache.avalon.cornerstone.services.store.StreamRepository sr)
Construct a MimeMessageSource based on a JDBC repository, a key, and a stream repository (where we might store the message body) |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Check to see whether this is the same repository and the same key |
java.io.InputStream |
getInputStream()
Return the input stream to the database field and then the file stream. |
long |
getMessageSize()
Runs a custom SQL statement to check the size of the message body |
java.lang.String |
getSourceId()
Returns a unique String ID that represents where this file is loaded from. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MimeMessageJDBCSource(JDBCMailRepository repository, java.lang.String key, org.apache.avalon.cornerstone.services.store.StreamRepository sr) throws java.io.IOException
Method Detail |
public java.lang.String getSourceId()
MimeMessageSource
getSourceId
in class MimeMessageSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class MimeMessageSource
java.io.IOException
public long getMessageSize() throws java.io.IOException
getMessageSize
in class MimeMessageSource
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |