Class CFetchedSourceFile
java.lang.Object
|
+----CFetchedSourceFile
- public class CFetchedSourceFile
- extends Object
ADT containing URL and HTML code for a single file
gathered from the internet. This class is used
by the gatherer and the fetcher to exchange
request-reply messages via a synchronized stack.
- Version:
- 0.3
- Author:
- Jörg Caumanns
-
CFetchedSourceFile(String)
- constructor used by the gatherer to create an
empty CFetchedSoirceFile object used as a request.
-
CFetchedSourceFile(String, String, long, String, int)
- constructor used by the fetcher to create a
CFetchedSourceFile object used as reply.
-
getContentLength()
- Returns the length of the file.
-
getContentType()
- Returns the MIME type of the file.
-
getLastMod()
- Returns the last modified date of the file.
-
getSourceFile()
- Returns the HTML code of the file.
-
getURL()
- Returns the URL of the file.
CFetchedSourceFile
public CFetchedSourceFile(String _strUrl)
- constructor used by the gatherer to create an
empty CFetchedSoirceFile object used as a request.
All properties (except the URL) will
be set by the fetcher using a clone of this object.
- Parameters:
- _strUrl - URL of the requested file
CFetchedSourceFile
public CFetchedSourceFile(String _strUrl,
String _strSourceFile,
long _lastMod,
String _contentType,
int _contentLength)
- constructor used by the fetcher to create a
CFetchedSourceFile object used as reply.
getURL
public String getURL()
- Returns the URL of the file.
getSourceFile
public String getSourceFile()
- Returns the HTML code of the file.
getLastMod
public long getLastMod()
- Returns the last modified date of the file.
getContentType
public String getContentType()
- Returns the MIME type of the file.
getContentLength
public int getContentLength()
- Returns the length of the file.