|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.mime.encoder.TextMimeEncoder
Converts mime documents to text.
TODO: Content-Transfer-Encoding.
TODO: Special handling of some headers like Content-Id.
Constructor Summary | |
TextMimeEncoder()
Creates a TextMimeEncoder. |
Method Summary | |
void |
writeBody(java.io.OutputStream theOs,
MimeBodyPart theMsg)
Writes the body of the message to the given stream. |
void |
writeContentType(java.io.OutputStream theOs,
MimeBodyPart theMsg)
Writes the content-type of the message to the given stream. |
protected void |
writeHeader(java.io.OutputStream theOs,
MimeHeader header)
Write one header to the stream. |
void |
writeHeaders(java.io.OutputStream theOs,
MimeBodyPart theMsg)
Writes the headers of the message to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextMimeEncoder()
Method Detail |
public void writeContentType(java.io.OutputStream theOs, MimeBodyPart theMsg) throws java.io.IOException
writeContentType
in interface MimeEncoder
theOs
- The stream to write totheMsg
- The message to get the content-type from
java.io.IOException
- Thrown if we fail to write the content-type to the streampublic void writeHeaders(java.io.OutputStream theOs, MimeBodyPart theMsg) throws java.io.IOException
writeHeaders
in interface MimeEncoder
theOs
- The stream to write totheMsg
- The message to get the headers from
java.io.IOException
- Thrown if we fail to write the headers to the streampublic void writeBody(java.io.OutputStream theOs, MimeBodyPart theMsg) throws java.io.IOException
writeBody
in interface MimeEncoder
theOs
- The stream to write totheMsg
- The message to get the data from
java.io.IOException
- Thrown if we fail to write the body to the streamprotected void writeHeader(java.io.OutputStream theOs, MimeHeader header) throws java.io.IOException
theOs
- The stream to write toheader
- The header to write.
java.io.IOException
- Thrown if we fail to write the header to the stream
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |