Class LineIteratorInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.jenkins.plugins.opentelemetry.job.log.util.LineIteratorInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class LineIteratorInputStream extends InputStream
InputStream
backend by aLineIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected io.opentelemetry.api.trace.Tracer
tracer
-
Constructor Summary
Constructors Constructor Description LineIteratorInputStream(LineIterator lines, LineIterator.LineBytesToLineNumberConverter lineBytesToLineNumberConverter, io.opentelemetry.api.trace.Tracer tracer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
read()
long
skip(long skipBytes)
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Constructor Detail
-
LineIteratorInputStream
public LineIteratorInputStream(LineIterator lines, LineIterator.LineBytesToLineNumberConverter lineBytesToLineNumberConverter, io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
skip
public long skip(long skipBytes) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-