Class InputStreamByteBuffer
java.lang.Object
java.io.OutputStream
org.kohsuke.stapler.framework.io.ByteBuffer
io.jenkins.plugins.opentelemetry.job.log.util.InputStreamByteBuffer
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class InputStreamByteBuffer
extends org.kohsuke.stapler.framework.io.ByteBuffer
Readonly
ByteBuffer
backed by an InputStream
-
Constructor Summary
ConstructorDescriptionInputStreamByteBuffer
(InputStream in, io.opentelemetry.api.trace.Tracer tracer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Unsupported by this readonlyByteBuffer
long
length()
void
write
(byte[] b) Unsupported by this readonlyByteBuffer
void
write
(byte[] b, int off, int len) Unsupported by this readonlyByteBuffer
void
write
(int b) Unsupported by this readonlyByteBuffer
void
writeTo
(OutputStream os) Unsupported by this readonlyByteBuffer
Methods inherited from class org.kohsuke.stapler.framework.io.ByteBuffer
toString
Methods inherited from class java.io.OutputStream
close, nullOutputStream
-
Constructor Details
-
InputStreamByteBuffer
public InputStreamByteBuffer(@Nonnull InputStream in, @Nonnull io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Details
-
length
public long length()- Overrides:
length
in classorg.kohsuke.stapler.framework.io.ByteBuffer
-
newInputStream
- Overrides:
newInputStream
in classorg.kohsuke.stapler.framework.io.ByteBuffer
-
write
Unsupported by this readonlyByteBuffer
- Overrides:
write
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
- alwaysIOException
-
write
Unsupported by this readonlyByteBuffer
- Overrides:
write
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
- alwaysIOException
-
writeTo
Unsupported by this readonlyByteBuffer
- Overrides:
writeTo
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
- always
-
write
Unsupported by this readonlyByteBuffer
- Overrides:
write
in classOutputStream
- Throws:
UnsupportedOperationException
- alwaysIOException
-
flush
Unsupported by this readonlyByteBuffer
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
UnsupportedOperationException
- alwaysIOException
-