Class ChunkedInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class ChunkedInputStream
    extends InputStream
    ChunkedInputStream is a subclass of InputStream that attempts to refill itself when its internal buffer is exhausted. This allows the object that is being streamed to appear contiguous to the client, but have a smaller memory footprint. For example, this allows the server to stream blobs/clobs instead of sending the entire object, saving memory for the JDBC client.