public class WriterMonitor extends Writer implements IFlushableStreamMonitor
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()
flushContents
in interface IFlushableStreamMonitor
public boolean isBuffered()
isBuffered
in interface IFlushableStreamMonitor
public void setBuffered(boolean buffer)
setBuffered
in interface IFlushableStreamMonitor
public String getContents()
getContents
in interface IStreamMonitor
public void addListener(IStreamListener listener)
addListener
in interface IStreamMonitor
public void removeListener(IStreamListener listener)
removeListener
in interface IStreamMonitor
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 © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.