Class CloseableIterator<E>
java.lang.Object
io.jenkins.plugins.opentelemetry.job.log.util.CloseableIterator<E>
- All Implemented Interfaces:
AutoCloseable,Iterator<E>
Useful when the Iterator is backed by an InputStream and the logic of the code dereferences the
InputStream, make the Iterator closeable.
TODO verify that extending AutoCloseable instead of Closeable is a good decision? The rationale
is that it's more general.