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 Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.