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