| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | FileBackedMimeBodyPart(File
file containing the body part. file)Create a MimeBodyPart backed by the data in file. |
| public | FileBackedMimeBodyPart(InputStream
an inputstream containing the body part. content, File a handle to the backing file to use for storage. file)Create a MimeBodyPart backed by file based on the headers and content data in content. |
| public | FileBackedMimeBodyPart(InternetHeaders
headers for the body part. headers, InputStream internal content for the body part. body, File backing file to use. file)Create a MimeBodyPart backed by file, with the headers given in headers and body content taken from the stream body. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static void | |
| private static File | |
| private static File | |
| private static void | |
| private static void | |
| public void | writeTo(OutputStream
the stream to write to out)Overrides javax. Implements javax. |
| _file | back to summary |
|---|---|
| private final File _file | |
| BUF_SIZE | back to summary |
|---|---|
| private static final int BUF_SIZE | |
| FileBackedMimeBodyPart | back to summary |
|---|---|
| public FileBackedMimeBodyPart(File file) throws MessagingException, IOException Create a MimeBodyPart backed by the data in file.
| |
| FileBackedMimeBodyPart | back to summary |
|---|---|
| public FileBackedMimeBodyPart(InputStream content, File file) throws MessagingException, IOException Create a MimeBodyPart backed by file based on the headers and content data in content.
| |
| FileBackedMimeBodyPart | back to summary |
|---|---|
| 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.
| |
| dispose | back to summary |
|---|---|
| public void dispose() throws IOException Close off the underlying shared streams and remove the backing file.
| |
| saveContentToStream | back to summary |
|---|---|
| private static void saveContentToStream(OutputStream out, InputStream content) throws IOException | |
| saveStreamToFile | back to summary |
|---|---|
| private static File saveStreamToFile(InputStream content, File tempFile) throws IOException | |
| saveStreamToFile | back to summary |
|---|---|
| private static File saveStreamToFile(InternetHeaders headers, InputStream content, File tempFile) throws IOException | |
| writeHeader | back to summary |
|---|---|
| private static void writeHeader(OutputStream out, String header) throws IOException | |
| writeSeperator | back to summary |
|---|---|
| private static void writeSeperator(OutputStream out) throws IOException | |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream out) throws IOException, MessagingException Overrides javax. Implements javax. Doc from javax. Output the body part as an RFC 822 format stream.
| |