|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
gnu.inet.util.MessageOutputStream
public class MessageOutputStream
An output stream that escapes any dots on a line by themself with another dot, for the purposes of sending messages to SMTP and NNTP servers.
Field Summary | |
---|---|
static int |
END
The stream termination octet. |
static int |
LF
The line termination octet. |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
MessageOutputStream(java.io.OutputStream out)
Constructs a message output stream connected to the specified output stream. |
Method Summary | |
---|---|
void |
write(byte[] bytes)
|
void |
write(byte[] bytes,
int off,
int len)
Block write. |
void |
write(int c)
Character write. |
Methods inherited from class java.io.FilterOutputStream |
---|
close, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int END
public static final int LF
Constructor Detail |
---|
public MessageOutputStream(java.io.OutputStream out)
out
- the target output streamMethod Detail |
---|
public void write(int c) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] bytes, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |