Class SourceSet.Parser
java.lang.Object
com.adobe.epubcheck.util.SourceSet.Parser
- Enclosing class:
SourceSet
The `srcser` parser implementation.
Folows the logic of the "parsing a srcset attribute" algorithm, see
https://html.spec.whatwg.org/#parsing-a-srcset-attribute
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiderror(SourceSet.ParseError code, int position) private SourceSet.ImageSourcefinalizeSource(StringBuilder url, List<String> descriptors) parse(CharSequence srcset) private static intRemove trailing commas and return the count of commas removed
-
Field Details
-
POSITIVE_FLOAT
-
errorHandler
-
-
Constructor Details
-
Parser
-
-
Method Details
-
parse
-
removeTrailingCommas
Remove trailing commas and return the count of commas removed -
finalizeSource
-
error
-