gnu.inet.util
Class MessageOutputStream
java.lang.Objectjava.io.OutputStreamjava.io.FilterOutputStreamgnu.inet.util.MessageOutputStream
public class MessageOutputStream
extends java.io.FilterOutputStream
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.
Version:
- Chris Burdess
static int | END- The stream termination octet.
|
static int | LF- The line termination octet.
|
MessageOutputStream(java.io.OutputStream out)- Constructs a message output stream connected to the specified output stream.
|
void | write(byte[] bytes)
|
void | write(byte[] bytes, int off, int len)- Block write.
|
void | write(int c)- Character write.
|
END
public static final int END
The stream termination octet.
- 46
LF
public static final int LF
The line termination octet.
- 10
MessageOutputStream
public MessageOutputStream(java.io.OutputStream out)
Constructs a message output stream connected to the specified output stream.
out - the target output stream
write
public void write(byte[] bytes)
throws java.io.IOException
write
public void write(byte[] bytes,
int off,
int len)
throws java.io.IOException Block write.
write
public void write(int c)
throws java.io.IOException Character write.
© Copyright 2003 The Free Software Foundation,
all rights reserved