public static class DownloadedContent.OnFile extends Object implements DownloadedContent
DownloadedContent.InMemory, DownloadedContent.OnFile| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Clean up resources associated to this content.
|
protected void |
finalize() |
InputStream |
getInputStream()
Returns a new
InputStream allowing to read the downloaded content. |
boolean |
isEmpty()
Returns true if the content is empty.
|
public OnFile(File file, boolean temporary)
file - the filetemporary - if true, the file will be deleted when cleanUp() is called.public InputStream getInputStream() throws FileNotFoundException
DownloadedContentInputStream allowing to read the downloaded content.getInputStream in interface DownloadedContentFileNotFoundExceptionpublic void cleanUp()
DownloadedContentcleanUp in interface DownloadedContentpublic boolean isEmpty()
DownloadedContentisEmpty in interface DownloadedContentCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.