|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--java.io.FilterOutputStream | +--iaik.utils.LineOutputStream
LineOutputStream is an OutputStream which can be used to write either lines using methods print() and println() or byte arrays (stream interface). And it is possible to switch between the two modes at any time.
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
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
LineOutputStream(OutputStream out)
Creates a new LineOutputStream to write data to the specified underlying output stream. |
Method Summary | |
void |
print(String s)
Print a String. |
void |
println()
Finish the line. |
void |
println(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)
|
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 |
Constructor Detail |
public LineOutputStream(OutputStream out)
os
- the underlying output streamMethod Detail |
public void write(int b) throws IOException
write
in class FilterOutputStream
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
public void print(String s) throws IOException
s
- the String to printpublic void println(String s) throws IOException
s
- the String to printpublic void println() throws IOException
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |