public class SwitchableWriter extends Writer
| Constructor and Description |
|---|
SwitchableWriter(Writer dest,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
getEnabled() |
void |
setEnabled(boolean enabled) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
public SwitchableWriter(Writer dest, boolean enabled)
public void setEnabled(boolean enabled)
public boolean getEnabled()
public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2016–2017 1&1. All rights reserved.