Class FileUtils.ByteBufferBackedInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Enclosing class:
    FileUtils

    public static class FileUtils.ByteBufferBackedInputStream
    extends InputStream
    InputStream for backed by a ByteBuffer. From: https://stackoverflow.com/questions/4332264/wrapping-a-bytebuffer-with-an-inputstream/6603018#6603018 Don't forget to close or release the ByteBuffer when the InputStream is closed, if needed.