public interface Fetcher extends Closeable
CrawleableUri
instance.| Modifier and Type | Method and Description |
|---|---|
default File |
fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri)
Fetches a stream of data from the given URI, stores it and returns a
File object pointing to the stored data. |
File |
fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri,
Delayer delayer)
|
default File fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri) throws RuntimeException
File object pointing to the stored data. If an error occurs,
null is returned.uri - The URI from which data should be fetched.File object pointing to the downloaded data or null
if an error occurred.RuntimeExceptionFile fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri, Delayer delayer)
Delayer, stores it and returns a
File object pointing to the stored data. If an error occurs,
null is returned.uri - The URI from which data should be fetched.File object pointing to the downloaded data or null
if an error occurred.Copyright © 2017–2020. All rights reserved.