org.japtproxy.fetcher
Interface FetchedResource
- All Known Implementing Classes:
- FetchedResourceFtp, FetchedResourceHttp
public interface FetchedResource
The FetchedResource interface defines methods used to get information
about the fetched resource.
- Version:
- $LastChangedRevision:79 $
- Author:
- Oliver J. Siegmar
isModified
boolean isModified()
- Returns:
- Returns if the resource has been modified.
getContentType
java.lang.String getContentType()
- Returns:
- Returns the contentType (aka mime type).
getLastModified
long getLastModified()
- Returns:
- Returns the timestamp of the last modification.
getContentLength
long getContentLength()
- Returns:
- Returns the length of the content.
getInputStream
java.io.InputStream getInputStream()
throws java.io.IOException
- Returns:
- Returns the
InputStream.
- Throws:
java.io.IOException - is thrown if the operation fails.
close
void close()
- Closes open fetcher connection.
Copyright © 2006-2008. All Rights Reserved.