|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.message.DefaultMessageWriter
public class DefaultMessageWriter
Default implementation of MessageWriter
.
Constructor Summary | |
---|---|
DefaultMessageWriter()
Protected constructor prevents direct instantiation. |
Method Summary | |
---|---|
protected java.io.OutputStream |
encodeStream(java.io.OutputStream out,
java.lang.String encoding,
boolean binaryBody)
|
void |
writeBody(Body body,
java.io.OutputStream out)
Write the specified Body to the specified
OutputStream . |
void |
writeEntity(Entity entity,
java.io.OutputStream out)
Write the specified Entity to the specified
OutputStream . |
void |
writeField(Field field,
java.io.OutputStream out)
Write the specified Field to the specified
OutputStream . |
void |
writeHeader(Header header,
java.io.OutputStream out)
Write the specified Header to the specified
OutputStream . |
void |
writeMessage(Message message,
java.io.OutputStream out)
Write the specified Message to the specified
OutputStream . |
void |
writeMultipart(Multipart multipart,
java.io.OutputStream out)
Write the specified Multipart to the specified
OutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessageWriter()
Method Detail |
---|
public void writeBody(Body body, java.io.OutputStream out) throws java.io.IOException
Body
to the specified
OutputStream
.
writeBody
in interface MessageWriter
body
- the Body
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.public void writeEntity(Entity entity, java.io.OutputStream out) throws java.io.IOException
Entity
to the specified
OutputStream
.
writeEntity
in interface MessageWriter
entity
- the Entity
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.public void writeMessage(Message message, java.io.OutputStream out) throws java.io.IOException
Message
to the specified
OutputStream
.
writeMessage
in interface MessageWriter
message
- the Message
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.public void writeMultipart(Multipart multipart, java.io.OutputStream out) throws java.io.IOException
Multipart
to the specified
OutputStream
.
writeMultipart
in interface MessageWriter
multipart
- the Multipart
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.public void writeField(Field field, java.io.OutputStream out) throws java.io.IOException
Field
to the specified
OutputStream
.
writeField
in interface MessageWriter
field
- the Field
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.public void writeHeader(Header header, java.io.OutputStream out) throws java.io.IOException
Header
to the specified
OutputStream
.
writeHeader
in interface MessageWriter
header
- the Header
to write.out
- the OutputStream to write to.
java.io.IOException
- if an I/O error occurs.protected java.io.OutputStream encodeStream(java.io.OutputStream out, java.lang.String encoding, boolean binaryBody) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |