public class LogReader extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
private boolean |
closed |
static int |
FRAME_SIZE_OFFSET |
static int |
HEADER_SIZE |
private static org.slf4j.Logger |
log |
private InputStream |
stream |
Constructor and Description |
---|
LogReader(InputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
LogMessage |
nextMessage() |
private static final org.slf4j.Logger log
private final InputStream stream
public static final int HEADER_SIZE
public static final int FRAME_SIZE_OFFSET
private volatile boolean closed
public LogReader(InputStream stream)
public LogMessage nextMessage() throws IOException
IOException
protected void finalize() throws Throwable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015. All rights reserved.