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.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
s
- the String to printjava.io.IOException
public void println(java.lang.String s) throws java.io.IOException
s
- the String to printjava.io.IOException
public void println() throws java.io.IOException
java.io.IOException