Class ByteBufferQueueInputStream

java.lang.Object
java.io.InputStream
org.jenkinsci.remoting.util.ByteBufferQueueInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ByteBufferQueueInputStream extends InputStream
An InputStream backed by a ByteBufferQueue. Assumes that the backing ByteBufferQueue will not be updated by another thread during calls to read() so all methods are non-blocking and an empty ByteBufferQueue is deemed equivalent to end of stream.
Since:
3.0