public final class SynchronizedCountingQuietWriter extends QuietWriter
Writer's lock. This is necessary because the count is
maintained as a long.CountingQuietWritererrorHandlerout| Constructor and Description |
|---|
SynchronizedCountingQuietWriter(Writer writer,
ErrorHandler eh) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getCount() |
void |
setCount(long count) |
void |
write(String string) |
setErrorHandlerwrite, write, writepublic SynchronizedCountingQuietWriter(Writer writer, ErrorHandler eh)
public final void write(String string)
write in class QuietWriterpublic void flush()
flush in interface Flushableflush in class QuietWriterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterWriterIOExceptionpublic final long getCount()
public final void setCount(long count)