Package org.apache.james.mime4j.dom
Interface MessageWriter
-
- All Known Implementing Classes:
DefaultMessageWriter
public interface MessageWriter
An interface to write out content ofMessage
and other DOM elements to anOutputStream
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeBody(Body body, OutputStream out)
void
writeEntity(Entity entity, OutputStream out)
void
writeField(Field field, OutputStream out)
void
writeHeader(Header header, OutputStream out)
void
writeMessage(Message message, OutputStream out)
void
writeMultipart(Multipart multipart, OutputStream out)
-
-
-
Method Detail
-
writeMessage
void writeMessage(Message message, OutputStream out) throws IOException
- Throws:
IOException
-
writeBody
void writeBody(Body body, OutputStream out) throws IOException
- Throws:
IOException
-
writeEntity
void writeEntity(Entity entity, OutputStream out) throws IOException
- Throws:
IOException
-
writeMultipart
void writeMultipart(Multipart multipart, OutputStream out) throws IOException
- Throws:
IOException
-
writeField
void writeField(Field field, OutputStream out) throws IOException
- Throws:
IOException
-
writeHeader
void writeHeader(Header header, OutputStream out) throws IOException
- Throws:
IOException
-
-