java.lang.Object | ||
↳ | MimeBodyPart | |
↳ | org.bouncycastle.mail.smime.util.FileBackedMimeBodyPart |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a MimeBodyPart backed by the data in file.
| |||||||||||
Create a MimeBodyPart backed by file based on the headers and
content data in content.
| |||||||||||
Create a MimeBodyPart backed by file, with the headers
given in headers and body content taken from the stream body.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close off the underlying shared streams and remove the backing file.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a MimeBodyPart backed by the data in file.
file | file containing the body part. |
---|
an exception occurs parsing file. | |
IOException | an exception occurs accessing file. |
MessagingException |
Create a MimeBodyPart backed by file based on the headers and content data in content.
content | an inputstream containing the body part. |
---|---|
file | a handle to the backing file to use for storage. |
an exception occurs parsing the resulting body part in file. | |
IOException | an exception occurs accessing file or content. |
MessagingException |
Create a MimeBodyPart backed by file, with the headers given in headers and body content taken from the stream body.
headers | headers for the body part. |
---|---|
body | internal content for the body part. |
file | backing file to use. |
if the body part can't be produced. | |
IOException | if there is an issue reading stream or writing to file. |
MessagingException |
Close off the underlying shared streams and remove the backing file.
IOException | if streams cannot be closed or the file cannot be deleted. |
---|