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
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
ConstructorsConstructorDescriptionLoggingFilterReader(Reader in, org.slf4j.Logger logger) Constructs a new LoggingFilterReader that logs lines read from the given reader. -
Method Summary
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skipMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
LoggingFilterReader
Constructs a new LoggingFilterReader that logs lines read from the given reader.
-
-
Method Details
-
log
Logs the contents of the buffer and resets it. -
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-