Modifier and Type | Field and Description |
---|---|
private boolean |
isErrStream
|
private org.apache.log4j.Logger |
logger
|
private String |
name
|
private BufferedReader |
reader
|
private AtomicReference<Boolean> |
running
|
Constructor and Description |
---|
InputStreamReaderRunnable(org.apache.log4j.Logger logger,
InputStream is,
String name,
AtomicReference<Boolean> running)
Create a thread to read from a input stream and print it to the console.
|
@Nonnull private final org.apache.log4j.Logger logger
@Nonnull private BufferedReader reader
private boolean isErrStream
@Nonnull private final AtomicReference<Boolean> running
public InputStreamReaderRunnable(@Nonnull org.apache.log4j.Logger logger, @Nonnull InputStream is, @Nonnull String name, @Nonnull AtomicReference<Boolean> running)
is
- The input stream to read.name
- The NAME of the stream.