Package org.jenkinsci.remoting.util
Class ByteBufferQueueOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.jenkinsci.remoting.util.ByteBufferQueueOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class ByteBufferQueueOutputStream extends OutputStream
AnOutputStream
backed by aByteBufferQueue
.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description ByteBufferQueueOutputStream(ByteBufferQueue queue)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Constructor Detail
-
ByteBufferQueueOutputStream
public ByteBufferQueueOutputStream(ByteBufferQueue queue)
Creates a new instance.- Parameters:
queue
- the backing queue.
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(@NonNull byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
-