public class UnionWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
protected ExceptionListener |
exListener
Приемник сообщений о ошибке
|
protected Set<Writer> |
writers
Куда записывать
|
| Constructor and Description |
|---|
UnionWriter()
Конструктор по умолчанию
|
UnionWriter(ExceptionListener exceptionListener,
Iterable<Writer> writers)
Конструктор
|
UnionWriter(ExceptionListener exceptionListener,
Writer... writers)
Конструктор
|
UnionWriter(Iterable<Writer> writers)
Конструктор
|
UnionWriter(Writer... writers)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
ExceptionListener |
getExceptionListener()
Указывает приемник ошибок
|
Set<Writer> |
getWriters()
Указывает куда производиться запись
|
protected boolean |
isCatchException()
Перехватывать ошибки и перенаправлять в приемник.
|
void |
setExceptionListener(ExceptionListener exListener)
Указывает приемник ошибок
|
void |
setWriters(Iterable<Writer> writers)
Указывает куда производиться запись
|
void |
write(char[] cbuf,
int off,
int len) |
protected ExceptionListener exListener
public UnionWriter()
public UnionWriter(Writer... writers)
writers - куда записыватьpublic UnionWriter(Iterable<Writer> writers)
writers - куда записыватьpublic UnionWriter(ExceptionListener exceptionListener, Writer... writers)
exceptionListener - Приемник ошибокwriters - куда записыватьpublic UnionWriter(ExceptionListener exceptionListener, Iterable<Writer> writers)
exceptionListener - Приемник ошибокwriters - куда записыватьpublic Set<Writer> getWriters()
public void setWriters(Iterable<Writer> writers)
writers - куда производиться записьpublic ExceptionListener getExceptionListener()
public void setExceptionListener(ExceptionListener exListener)
exListener - приемник ошибокprotected boolean isCatchException()
public 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 © 2018. All rights reserved.