@Deprecated public class SimpleFileFetcher extends BaseFetcher
_defaultMaxContentSize, _maxContentSizes, _validMimeTypes, DEFAULT_MAX_CONTENT_SIZE| Constructor and Description |
|---|
SimpleFileFetcher()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Deprecated.
Terminate any async request being processed.
|
FetchedResult |
get(String url,
Payload payload)
Deprecated.
Get the content stored in the resource referenced by the 'url' parameter.
|
addValidMimeType, addValidMimeTypes, get, getDefaultMaxContentSize, getMaxContentSize, getMimeTypeFromContentType, getValidMimeTypes, setDefaultMaxContentSize, setMaxContentSize, setValidMimeTypespublic FetchedResult get(String url, Payload payload) throws BaseFetchException
BaseFetcherget in class BaseFetcherurl - a string url for which to get contentpayload - a populated PayloadFetchedResult associated with the URLBaseFetchException - if an error results from fetching the url.public void abort()
BaseFetcherabort in class BaseFetcherCopyright © 2009–2016 Crawler-Commons. All rights reserved.