|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.BodyPart
javax.mail.internet.MimeBodyPart
org.bouncycastle.mail.smime.util.FileBackedMimeBodyPart
Field Summary |
Fields inherited from class javax.mail.internet.MimeBodyPart |
content, contentStream, dh, headers |
Fields inherited from class javax.mail.BodyPart |
parent |
Fields inherited from interface javax.mail.Part |
ATTACHMENT, INLINE |
Constructor Summary | |
FileBackedMimeBodyPart(java.io.File file)
Create a MimeBodyPart backed by the data in file. |
|
FileBackedMimeBodyPart(java.io.InputStream content,
java.io.File file)
Create a MimeBodyPart backed by file based on the headers and content data in content. |
|
FileBackedMimeBodyPart(javax.mail.internet.InternetHeaders headers,
java.io.InputStream body,
java.io.File file)
Create a MimeBodyPart backed by file, with the headers given in headers and body content taken from the stream body. |
Method Summary | |
void |
dispose()
Close off the underlying shared streams and remove the backing file. |
void |
writeTo(java.io.OutputStream out)
|
Methods inherited from class javax.mail.internet.MimeBodyPart |
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getSize, isMimeType, removeHeader, saveFile, saveFile, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, setText, updateHeaders |
Methods inherited from class javax.mail.BodyPart |
getParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileBackedMimeBodyPart(java.io.File file) throws javax.mail.MessagingException, java.io.IOException
file
- file containing the body part.
javax.mail.MessagingException
- an exception occurs parsing file.
java.io.IOException
- an exception occurs accessing file.public FileBackedMimeBodyPart(java.io.InputStream content, java.io.File file) throws javax.mail.MessagingException, java.io.IOException
content
- an inputstream containing the body part.file
- a handle to the backing file to use for storage.
javax.mail.MessagingException
- an exception occurs parsing the resulting body part in file.
java.io.IOException
- an exception occurs accessing file or content.public FileBackedMimeBodyPart(javax.mail.internet.InternetHeaders headers, java.io.InputStream body, java.io.File file) throws javax.mail.MessagingException, java.io.IOException
headers
- headers for the body part.body
- internal content for the body part.file
- backing file to use.
javax.mail.MessagingException
- if the body part can't be produced.
java.io.IOException
- if there is an issue reading stream or writing to file.Method Detail |
public void writeTo(java.io.OutputStream out) throws java.io.IOException, javax.mail.MessagingException
java.io.IOException
javax.mail.MessagingException
public void dispose() throws java.io.IOException
java.io.IOException
- if streams cannot be closed or the file cannot be deleted.
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |