com.gargoylesoftware.htmlunit
Interface DownloadedContent

All Superinterfaces:
Serializable
All Known Implementing Classes:
DownloadedContent.InMemory, DownloadedContent.OnFile

public interface DownloadedContent
extends Serializable

Wrapper for content downloaded from a remote server.

Version:
$Revision: 7073 $
Author:
Marc Guillemot

Nested Class Summary
static class DownloadedContent.InMemory
          Implementation keeping content in memory.
static class DownloadedContent.OnFile
          Implementation keeping content on the file system.
 
Method Summary
 void cleanUp()
          Clean up resources associated to this content.
 InputStream getInputStream()
          Returns a new InputStream allowing to read the downloaded content.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Returns a new InputStream allowing to read the downloaded content.

Returns:
the InputStream
Throws:
IOException - in case of problem accessing the content

cleanUp

void cleanUp()
Clean up resources associated to this content.



Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.