Sniffers class
Default MediaType sniffers provided by Readium.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
archive(
SnifferContext context) → Future< MediaType?> - Sniffs a simple Archive-based MediaType, like Comic Book Archive or Zipped Audio Book.
-
bitmap(
SnifferContext context) → Future< MediaType?> - Sniffs a bitmap image.
-
epub(
SnifferContext context) → Future< MediaType?> - Sniffs an EPUB publication.
-
html(
SnifferContext context) → Future< MediaType?> - Sniffs an HTML document.
-
lcpLicense(
SnifferContext context) → Future< MediaType?> - Sniffs an LCP License Document.
-
lpf(
SnifferContext context) → Future< MediaType?> - Sniffs a Lightweight Packaging MediaType (LPF).
-
opds(
SnifferContext context) → Future< MediaType?> - Sniffs an OPDS document.
-
pdf(
SnifferContext context) → Future< MediaType?> - Sniffs a PDF document.
-
w3cWPUB(
SnifferContext context) → Future< MediaType?> -
webpub(
SnifferContext context) → Future< MediaType?> - Sniffs a Readium Web Publication, protected or not by LCP.
Constants
-
all
→ const List<
Sniffer> - The default sniffers provided by Readium 2 to resolve a MediaType. The sniffers order is important, because some MediaTypes are subsets of other MediaTypes.
-
cbzExtensions
→ const List<
String> - Authorized extensions for resources in a CBZ archive. Reference: https://wiki.mobileread.com/wiki/CBR_and_CBZ
-
zabExtensions
→ const List<
String> - Authorized extensions for resources in a ZAB archive (Zipped Audio Book).