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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
print(java.lang.String s)
Print a String.
|
void |
println()
Finish the line.
|
void |
println(java.lang.String s)
Print a String, and then finish the line.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
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