Class DockerLogStreamReader
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.log.container.DockerLogStreamReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class DockerLogStreamReader extends Object implements Closeable
Stream support should be rolled into docker-java, see https://github.com/docker-java/docker-java/issues/42. As a workaround we borrowed the decoding magic from https://github.com/spotify/docker-client.- See Also:
- LogReader
-
-
Field Summary
Fields Modifier and Type Field Description static int
FRAME_SIZE_OFFSET
static int
HEADER_SIZE
-
Constructor Summary
Constructors Constructor Description DockerLogStreamReader(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
DockerLogMessage
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
-
DockerLogStreamReader
public DockerLogStreamReader(InputStream is)
-
-
Method Detail
-
nextMessage
public DockerLogMessage nextMessage() throws IOException
- Throws:
IOException
-
finalize
protected void finalize() throws Throwable
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-