|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.smtp.MimeWriter
public class MimeWriter
Write MIME messages. Allows embedding MIME bodies.
Constructor Summary | |
---|---|
protected |
MimeWriter(java.io.OutputStream os)
|
Method Summary | |
---|---|
void |
close()
Write the final boundary terminating the mime body. |
static MimeWriter |
createMimeWriter(java.io.OutputStream os,
java.lang.String contentType,
java.lang.String rest)
|
MimeWriter |
createSubMime(java.lang.String contenttype,
java.lang.String rest)
Create a MIME part in THIS version that is a full MIME compound document itself. |
protected byte[] |
getBoundary()
|
protected java.lang.String |
getBoundaryString()
|
void |
partHeader(java.lang.String name,
java.lang.String value)
|
void |
partStart(boolean base64,
java.lang.String contenttype,
java.lang.String rest)
|
java.io.OutputStream |
partStream()
Returns the content stream for the current part. |
java.io.Writer |
partWriter(java.lang.String encoding)
Get a writer which allows writing content to the data in the appropriate format and encoding. |
protected void |
rawHeader(java.lang.String name,
java.lang.String value)
|
void |
write(byte[] data)
|
void |
write(byte[] data,
int off,
int len)
Write the specified data TO this writer's output. |
void |
write(java.lang.String s)
Writes a string in the current encoding. |
void |
writeBody(java.lang.String contenttype,
java.lang.String trailer)
|
protected void |
writeCRLF()
|
protected void |
writeOpenBoundary()
Write a boundary segment for a 'next' part. |
void |
writeVersion()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MimeWriter(java.io.OutputStream os)
Method Detail |
---|
protected byte[] getBoundary()
protected java.lang.String getBoundaryString()
public void write(byte[] data, int off, int len) throws java.io.IOException
data
- off
- len
-
java.io.IOException
public final void write(byte[] data) throws java.io.IOException
java.io.IOException
public void write(java.lang.String s) throws java.io.IOException
s
-
java.io.IOException
protected void rawHeader(java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
protected void writeOpenBoundary() throws java.io.IOException
java.io.IOException
protected void writeCRLF() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void writeVersion() throws java.io.IOException
java.io.IOException
public void writeBody(java.lang.String contenttype, java.lang.String trailer) throws java.io.IOException
java.io.IOException
public static MimeWriter createMimeWriter(java.io.OutputStream os, java.lang.String contentType, java.lang.String rest) throws java.io.IOException
java.io.IOException
public void partStart(boolean base64, java.lang.String contenttype, java.lang.String rest) throws java.io.IOException
java.io.IOException
public void partHeader(java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public java.io.OutputStream partStream() throws java.io.IOException
java.io.IOException
public java.io.Writer partWriter(java.lang.String encoding) throws java.io.IOException
java.io.IOException
public MimeWriter createSubMime(java.lang.String contenttype, java.lang.String rest) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |