Package org.htmlunit
Class DownloadedContent.InMemory
java.lang.Object
org.htmlunit.DownloadedContent.InMemory
- All Implemented Interfaces:
Serializable,DownloadedContent
- Enclosing interface:
DownloadedContent
Implementation keeping content in memory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.htmlunit.DownloadedContent
DownloadedContent.InMemory, DownloadedContent.OnFile -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()Clean up resources associated to this content.Returns a newInputStreamallowing to read the downloaded content.booleanisEmpty()Returns true if the content is empty.longlength()Returns the number of bytes.
-
Method Details
-
getInputStream
Description copied from interface:DownloadedContentReturns a newInputStreamallowing to read the downloaded content.- Specified by:
getInputStreamin interfaceDownloadedContent- Returns:
- the InputStream
-
cleanUp
public void cleanUp()Description copied from interface:DownloadedContentClean up resources associated to this content.- Specified by:
cleanUpin interfaceDownloadedContent
-
isEmpty
public boolean isEmpty()Description copied from interface:DownloadedContentReturns true if the content is empty.- Specified by:
isEmptyin interfaceDownloadedContent- Returns:
- true or false
-
length
public long length()Description copied from interface:DownloadedContentReturns the number of bytes.- Specified by:
lengthin interfaceDownloadedContent- Returns:
- the length
-