github classgraph/classgraph classgraph-4.8.80

latest releases: classgraph-4.8.172, classgraph-4.8.171, classgraph-4.8.170...
3 years ago

Fixed #430, which covers limitations of the with ResourceList item consumer API, when the consumer needs to be able to throw IOException. (Thanks to @mike-neck for reporting the issue.)

  • Added three new classes:
    • ResourceList#ByteArrayConsumerThrowsIOException
    • ResourceList#InputStreamConsumerThrowsIOException
    • ResourceList#ByteBufferConsumerThrowsIOException
  • Deprecated:
    • ResourceList#forEachByteArray(ByteArrayConsumer consumer, boolean ignoreIOExceptions)
    • ResourceList#forEachByteArray(final ByteArrayConsumer consumer)
    • ResourceList#forEachInputStream(InputStreamConsumer consumer, boolean ignoreIOExceptions)
    • ResourceList#forEachInputStream(InputStreamConsumer consumer)
    • ResourceList#forEachByteBuffer(ByteBufferConsumer consumer, boolean ignoreIOExceptions)
    • ResourceList#forEachByteBuffer(ByteBufferConsumer consumer)
  • Added:
    • ResourceList#forEachByteArrayIgnoringIOException(ByteArrayConsumer byteArrayConsumer)
    • ResourceList#forEachByteArrayThrowingIOException(ByteArrayConsumerThrowsIOException consumer) throws IOException
    • ResourceList#forEachInputStreamIgnoringIOException(InputStreamConsumer byteArrayConsumer)
    • ResourceList#forEachInputStreamThrowingIOException(InputStreamConsumerThrowsIOException consumer) throws IOException
    • ResourceList#forEachByteBufferIgnoringIOException(ByteBufferConsumer byteArrayConsumer)
    • ResourceList#forEachByteBufferThrowingIOException(ByteBufferConsumerThrowsIOException consumer) throws IOException

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.