|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 MimeEncodertheOs - 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 stream
public void writeHeaders(java.io.OutputStream theOs,
MimeBodyPart theMsg)
throws java.io.IOException
writeHeaders in interface MimeEncodertheOs - 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 stream
public void writeBody(java.io.OutputStream theOs,
MimeBodyPart theMsg)
throws java.io.IOException
writeBody in interface MimeEncodertheOs - 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 stream
protected 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 | ||||||||||