Class BufferReleasingInputStream

Object
java.io.InputStream
org.apache.spark.storage.BufferReleasingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BufferReleasingInputStream extends InputStream
Helper class that ensures a ManagedBuffer is released upon InputStream.close() and also detects stream corruption if streamCompressedOrEncrypted is true