public class WriterMonitor extends Writer
| Constructor and Description |
|---|
WriterMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IStreamListener listener) |
void |
close() |
void |
flush() |
void |
flushContents() |
String |
getContents() |
boolean |
isBuffered() |
void |
removeListener(IStreamListener listener) |
void |
setBuffered(boolean buffer) |
void |
write(char[] cbuf,
int off,
int len) |
public void flushContents()
public boolean isBuffered()
public void setBuffered(boolean buffer)
public String getContents()
public void addListener(IStreamListener listener)
public void removeListener(IStreamListener listener)
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.