public class LineOutputStream
extends java.io.FilterOutputStream
This class may be useful for writing messages which start with a couple of RFC822 headers followed by an arbitrary content (e.g. image/gif).
LineInputStream| Constructor and Description |
|---|
LineOutputStream(java.io.OutputStream out)
Creates a new LineOutputStream to write data to the specified underlying
output stream.
|
public LineOutputStream(java.io.OutputStream out)
out - the underlying output streampublic void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void print(java.lang.String s)
throws java.io.IOException
s - the String to printjava.io.IOExceptionpublic void println(java.lang.String s)
throws java.io.IOException
s - the String to printjava.io.IOExceptionpublic void println()
throws java.io.IOException
java.io.IOException