Package com.spotify.docker.client
Class LogReader
- java.lang.Object
-
- com.spotify.docker.client.LogReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class LogReader extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static int
FRAME_SIZE_OFFSET
static int
HEADER_SIZE
private java.io.InputStream
stream
-
Constructor Summary
Constructors Constructor Description LogReader(java.io.InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
LogMessage
nextMessage()
-
-
-
Field Detail
-
stream
private final java.io.InputStream stream
-
HEADER_SIZE
public static final int HEADER_SIZE
- See Also:
- Constant Field Values
-
FRAME_SIZE_OFFSET
public static final int FRAME_SIZE_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
nextMessage
public LogMessage nextMessage() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-