Interface ResourceStreamHandle

  • All Superinterfaces:
    AutoCloseable, Closeable
    All Known Subinterfaces:
    ResourceWithChecksumStreamHandle

    public interface ResourceStreamHandle
    extends Closeable
    A handle object that will be used for sending back a resource as stream.

    The stream close() method is typically called back automatically by the caller so the handle creator only needs to provide the close() implementation.

    Author:
    Yoav Landman
    • Method Detail

      • getInputStream

        InputStream getInputStream()
        Returns:
        The input stream of this handle
      • getSize

        long getSize()
        Returns:
        The size of the stream or -1 if unknown