Package org.htmlunit

Class DownloadedContent.OnFile

    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Description copied from interface: DownloadedContent
        Returns a new InputStream allowing to read the downloaded content.
        Specified by:
        getInputStream in interface DownloadedContent
        Returns:
        the InputStream
        Throws:
        java.io.IOException - in case of problem accessing the content
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: DownloadedContent
        Returns true if the content is empty.
        Specified by:
        isEmpty in interface DownloadedContent
        Returns:
        true or false
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable