TransformingFetcher class
Transforms the resources' content of a child fetcher using a list of ResourceTransformer functions.
Constructors
-
TransformingFetcher(Fetcher fetcher, List<
ResourceTransformer> transformers) - TransformingFetcher.single(Fetcher fetcher, ResourceTransformer transformer)
-
factory
Properties
- fetcher → Fetcher
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transformers
→ List<
ResourceTransformer> -
final
Methods
-
close(
) → Future< void> -
Closes any opened file handles, removes temporary files, etc.
override
-
get(
Link link) → Resource -
Returns the Resource at the given
link
's HREF.override -
getWithHref(
String href) → Resource -
Returns the Resource at the given
href
.inherited -
guessTitle(
) → Future< String?> -
inherited
-
links(
) → Future< List< Link> > -
Known resources available in the medium, such as file paths on the file system
or entries in a ZIP archive. This list is not exhaustive, and additional
unknown resources might be reachable.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAsJsonOrNull(
String href) → Future< Map< String, dynamic> ?> -
Returns the resource data as a JSON object at the given
href
, or null.inherited -
readAsXmlOrNull(
String href) → Future< XmlDocument?> -
Returns the resource data as an XML Document at the given
href
, or null.inherited -
readBytes(
Link link) → Future< ByteData> -
Returns the resource data at the given Link's HREF, or throws a
Resource.Exception
inherited -
readBytesWithHref(
String href) → Future< ByteData> -
Returns the resource data at the given
href
, or throws aResource.Exception
inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited