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.
|
long |
length()
Returns the number of bytes.
|
public InputStream getInputStream() throws IOException
DownloadedContent
InputStream
allowing to read the downloaded content.getInputStream
in interface DownloadedContent
IOException
- in case of problem accessing the contentpublic void cleanUp()
DownloadedContent
cleanUp
in interface DownloadedContent
public boolean isEmpty()
DownloadedContent
isEmpty
in interface DownloadedContent
protected void finalize() throws Throwable
public long length()
DownloadedContent
length
in interface DownloadedContent
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.