de.intarsys.tools.writer
public class ConsoleWriter extends java.io.Writer
Modifier | Constructor and Description |
---|---|
|
ConsoleWriter()
ConsoleWriter constructor comment.
|
protected |
ConsoleWriter(java.lang.Object lock)
ConsoleWriter constructor comment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ConsoleWriter()
protected ConsoleWriter(java.lang.Object lock)
lock
- java.lang.Objectpublic void basicClose() throws java.io.IOException
java.io.IOException
- If an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
- If an I/O error occurspublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
- If an I/O error occurspublic void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
cbuf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to writejava.io.IOException
- If an I/O error occurs