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 intFRAME_SIZE_OFFSETstatic intHEADER_SIZEprivate java.io.InputStreamstream
-
Constructor Summary
Constructors Constructor Description LogReader(java.io.InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()LogMessagenextMessage()
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-