Package net.bramp.ffmpeg.io
Class LoggingFilterReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- net.bramp.ffmpeg.io.LoggingFilterReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class LoggingFilterReader extends FilterReader
Wraps a Reader, and logs full lines of input as it is read.- Author:
- bramp
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description LoggingFilterReader(Reader in, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidlog()intread()intread(char[] cbuf, int off, int len)-
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
LoggingFilterReader
public LoggingFilterReader(Reader in, org.slf4j.Logger logger)
-
-
Method Detail
-
log
protected void log()
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
readin classFilterReader- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
readin classFilterReader- Throws:
IOException
-
-