Package org.htmlunit

Class DownloadedContent.InMemory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes_  
    • Constructor Summary

      Constructors 
      Constructor Description
      InMemory​(byte[] byteArray)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanUp()
      Clean up resources associated to this content.
      java.io.InputStream getInputStream()
      Returns a new InputStream allowing to read the downloaded content.
      boolean isEmpty()
      Returns true if the content is empty.
      long length()
      Returns the number of bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bytes_

        private final byte[] bytes_
    • Constructor Detail

      • InMemory

        InMemory​(byte[] byteArray)