setText, setContent, or
setDataHandler methods.
| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| public | PreencodedMimeBodyPart(String
the Content-Transfer-Encoding encoding)Create a PreencodedMimeBodyPart that assumes the data is encoded using the specified encoding. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getEncoding()
Overrides javax. Implements javax. |
| protected void | updateHeaders()
Overrides javax. Content-Transfer-Encoding header to use
the encoding that was specified when this object was created.
|
| public void | writeTo(OutputStream
the stream to write to os)Overrides javax. Implements javax. |
| encoding | back to summary |
|---|---|
| private String encoding | |
| PreencodedMimeBodyPart | back to summary |
|---|---|
| public PreencodedMimeBodyPart(String encoding) Create a PreencodedMimeBodyPart that assumes the data is encoded using the specified encoding. The encoding must be a MIME supported Content-Transfer-Encoding.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() throws MessagingException Overrides javax. Implements javax. Returns the content transfer encoding specified when this object was created.
| |
| updateHeaders | back to summary |
|---|---|
| protected void updateHeaders() throws MessagingException Overrides javax. Force the
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream os) throws IOException, MessagingException Overrides javax. Implements javax. Output the body part as an RFC 822 format stream.
| |