org.marre.mime.encoder
Interface MimeEncoder

All Known Implementing Classes:
TextMimeEncoder, WapMimeEncoder

public interface MimeEncoder

Interface for all mime encoders.

Version:
$Id: MimeEncoder.java,v 1.4 2004/11/02 17:59:55 c95men Exp $
Author:
Markus Eriksson

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.
 void writeHeaders(java.io.OutputStream theOs, MimeBodyPart theMsg)
          Writes the headers of the message to the given stream.
 

Method Detail

writeContentType

public void writeContentType(java.io.OutputStream theOs,
                             MimeBodyPart theMsg)
                      throws java.io.IOException
Writes the content-type of the message to the given stream.

Parameters:
theOs - The stream to write to
theMsg - The message to get the content-type from
Throws:
java.io.IOException - Thrown if we fail to write the content-type to the stream

writeHeaders

public void writeHeaders(java.io.OutputStream theOs,
                         MimeBodyPart theMsg)
                  throws java.io.IOException
Writes the headers of the message to the given stream.

Parameters:
theOs - The stream to write to
theMsg - The message to get the headers from
Throws:
java.io.IOException - Thrown if we fail to write the headers to the stream

writeBody

public void writeBody(java.io.OutputStream theOs,
                      MimeBodyPart theMsg)
               throws java.io.IOException
Writes the body of the message to the given stream.

Parameters:
theOs - The stream to write to
theMsg - The message to get the data from
Throws:
java.io.IOException - Thrown if we fail to write the body to the stream


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.