Package org.mandas.docker.client
Class LogReader
- java.lang.Object
-
- org.mandas.docker.client.LogReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class LogReader extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static int
FRAME_SIZE_OFFSET
static int
HEADER_SIZE
-
Constructor Summary
Constructors Constructor Description LogReader(InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
LogMessage
nextMessage()
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
LogReader
public LogReader(InputStream stream)
-
-
Method Detail
-
nextMessage
public LogMessage nextMessage() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-