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 void
close()
int
read()
int
read(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 IOException
Adapted from HttpResponseInputStream- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-