Interface HasInputStream

  • All Known Subinterfaces:
    ContentMeta

    public interface HasInputStream
    HasInputStream provides lazy loading of an input stream that might cause an exception
    Since:
    2014-02-19
    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeContent

        long writeContent​(java.io.OutputStream outputStream)
                   throws java.io.IOException
        Write the content stream to the output stream
        Parameters:
        outputStream - output stream
        Returns:
        the content stream
        Throws:
        java.io.IOException - on io error