Class ExecWatchInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.fabric8.kubernetes.client.dsl.internal.ExecWatchInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ExecWatchInputStream extends InputStream
Provides an InputStream that is non-blocking to the producer and that will request more input when needed.
-
-
Constructor Summary
Constructors Constructor Description ExecWatchInputStream(Runnable request)ExecWatchInputStream(Runnable request, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] bytes, int off, int len)Adapted from HttpResponseInputStream-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read(byte[] bytes, int off, int len) throws IOExceptionAdapted from HttpResponseInputStream- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-