org.bouncycastle.mail.smime.util
Class FileBackedMimeBodyPart
MimeBodyPartorg.bouncycastle.mail.smime.util.FileBackedMimeBodyPart
public class FileBackedMimeBodyPart
extends MimeBodyPart
FileBackedMimeBodyPart(File file)- Create a MimeBodyPart backed by the data in file.
|
FileBackedMimeBodyPart(InputStream content, File file)- Create a MimeBodyPart backed by file based on the headers and
content data in content.
|
FileBackedMimeBodyPart(InternetHeaders headers, InputStream body, File file)- Create a MimeBodyPart backed by file, with the headers
given in headers and body content taken from the stream body.
|
void | dispose()- Close off the underlying shared streams and remove the backing file.
|
void | writeTo(OutputStream out)
|
FileBackedMimeBodyPart
public FileBackedMimeBodyPart(File file)
throws MessagingException,
IOException Create a MimeBodyPart backed by the data in file.
file - file containing the body part.
FileBackedMimeBodyPart
public FileBackedMimeBodyPart(InputStream content,
File file)
throws MessagingException,
IOException 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.
FileBackedMimeBodyPart
public FileBackedMimeBodyPart(InternetHeaders headers,
InputStream body,
File file)
throws MessagingException,
IOException 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.
dispose
public void dispose()
throws IOException Close off the underlying shared streams and remove the backing file.
writeTo
public void writeTo(OutputStream out)
throws IOException,
MessagingException