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
ReadonlyByteBuffer
backed by anInputStream
-
-
Constructor Summary
Constructors Constructor Description InputStreamByteBuffer(InputStream in, io.opentelemetry.api.trace.Tracer tracer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
Unsupported byt this readonlyByteBuffer
long
length()
InputStream
newInputStream()
void
write(byte[] b)
Unsupported byt this readonlyByteBuffer
void
write(byte[] b, int off, int len)
Unsupported byt this readonlyByteBuffer
void
write(int b)
Unsupported byt this readonlyByteBuffer
void
writeTo(OutputStream os)
Unsupported byt this readonlyByteBuffer
-
Methods inherited from class java.io.OutputStream
close, nullOutputStream
-
-
-
-
Constructor Detail
-
InputStreamByteBuffer
public InputStreamByteBuffer(InputStream in, io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Detail
-
length
public long length()
- Overrides:
length
in classorg.kohsuke.stapler.framework.io.ByteBuffer
-
newInputStream
public InputStream newInputStream()
- Overrides:
newInputStream
in classorg.kohsuke.stapler.framework.io.ByteBuffer
-
write
public void write(byte[] b, int off, int len) throws IOException
Unsupported byt this readonlyByteBuffer
- Overrides:
write
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
IOException
-
write
public void write(int b) throws IOException
Unsupported byt this readonlyByteBuffer
- Overrides:
write
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
IOException
-
writeTo
public void writeTo(OutputStream os)
Unsupported byt this readonlyByteBuffer
- Overrides:
writeTo
in classorg.kohsuke.stapler.framework.io.ByteBuffer
- Throws:
UnsupportedOperationException
-
write
public void write(@NonNull byte[] b) throws IOException
Unsupported byt this readonlyByteBuffer
- Overrides:
write
in classOutputStream
- Throws:
UnsupportedOperationException
IOException
-
flush
public void flush() throws IOException
Unsupported byt this readonlyByteBuffer
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
UnsupportedOperationException
IOException
-
-