Closeable, Flushable, AutoCloseablepublic class LineOutputStream extends FilterOutputStream
The expected use is to write out RFC822 style headers to an output stream.
out| Constructor | Description |
|---|---|
LineOutputStream(OutputStream out) |
|
LineOutputStream(OutputStream out,
boolean allowutf8) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
writeln() |
|
void |
writeln(String s) |
public LineOutputStream(OutputStream out)
public LineOutputStream(OutputStream out, boolean allowutf8)
out - the OutputStreamallowutf8 - allow UTF-8 characters?public void writeln(String s) throws IOException
IOExceptionpublic void writeln()
throws IOException
IOExceptionCopyright © 2018 Oracle. All rights reserved.