public interface DownloadedContent extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
DownloadedContent.InMemory
Implementation keeping content in memory.
|
static class |
DownloadedContent.OnFile
Implementation keeping content on the file system.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Clean up resources associated to this content.
|
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.
|
InputStream getInputStream() throws IOException
InputStream
allowing to read the downloaded content.IOException
- in case of problem accessing the contentvoid cleanUp()
boolean isEmpty()
long length()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.