|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
de.intarsys.tools.writer.ConsoleWriter
public class ConsoleWriter
The console writer wraps System.out in a writer that is never closed accidently.
Constructor Summary | |
---|---|
ConsoleWriter()
ConsoleWriter constructor comment. |
Method Summary | |
---|---|
void |
basicClose()
Close the stream, flushing it first. |
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleWriter()
Method Detail |
---|
public void basicClose() throws IOException
IOException
- If an I/O error occurspublic void close() throws IOException
close
in interface Closeable
close
in class Writer
IOException
- If an I/O error occurspublic void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
- If an I/O error occurspublic void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
cbuf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to write
IOException
- If an I/O error occurs
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |