Class LogLineIteratorInputStream<Id>
java.lang.Object
java.io.InputStream
io.jenkins.plugins.opentelemetry.job.log.util.LogLineIteratorInputStream<Id>
- All Implemented Interfaces:
Closeable
,AutoCloseable
InputStream
backed by a LogLineIterator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLogLineIteratorInputStream
(LogLineIterator<Id> logLines, LogLineIterator.LogLineBytesToLogLineIdMapper<Id> logLineBytesToLogLineIdConverter, io.opentelemetry.api.trace.Tracer tracer) -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
Field Details
-
tracer
protected final io.opentelemetry.api.trace.Tracer tracer
-
-
Constructor Details
-
LogLineIteratorInputStream
public LogLineIteratorInputStream(LogLineIterator<Id> logLines, LogLineIterator.LogLineBytesToLogLineIdMapper<Id> logLineBytesToLogLineIdConverter, io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-