public class LogReader extends FilterReader
The reader is piped in the reading process, any characters read are written to an associated writer object.
Client -> LogReader -> Reader -> Source
|
v
Writer
todo make closing of associated writer configurable| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Writer |
getLog() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
void |
setLog(Writer newLog) |
mark, markSupported, ready, reset, skippublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterReaderIOExceptionpublic Writer getLog()
public int read()
throws IOException
read in class FilterReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class FilterReadercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readIOException - If an I/O error occurspublic void setLog(Writer newLog)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.