public class DownloadContentQuery extends Object
DownloadMap
for a particular
URI, returning either the content, or null if the
URI isn't applicable for the download map or there is nothing
in the table for the value.
This directly runs its own SQL query because the handling of
BLOBs here requires returning an InputStream, and that's not
easily supported by SQLIterator
.Constructor and Description |
---|
DownloadContentQuery(DownloadMap downloadMap,
String uri) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getContentStream() |
String |
getMediaType() |
boolean |
hasContent() |
public DownloadContentQuery(DownloadMap downloadMap, String uri)
downloadMap
- The download map to be querieduri
- The URI whose content is desiredpublic boolean hasContent()
public InputStream getContentStream()
public String getMediaType()
public void close()