com.gargoylesoftware.htmlunit
Class DownloadedContent.InMemory
java.lang.Object
com.gargoylesoftware.htmlunit.DownloadedContent.InMemory
- All Implemented Interfaces:
- DownloadedContent, Serializable
- Enclosing interface:
- DownloadedContent
public static class DownloadedContent.InMemory
- extends Object
- implements DownloadedContent
Implementation keeping content in memory.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadedContent.InMemory
public DownloadedContent.InMemory(byte[] byteArray)
getInputStream
public InputStream getInputStream()
- Description copied from interface:
DownloadedContent
- Returns a new
InputStream allowing to read the downloaded content.
- Specified by:
getInputStream in interface DownloadedContent
- Returns:
- the InputStream
cleanUp
public void cleanUp()
- Description copied from interface:
DownloadedContent
- Clean up resources associated to this content.
- Specified by:
cleanUp in interface DownloadedContent
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
Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.