Package com.github.weisj.jsvg.parser
Class ExternalDocumentLoader
- java.lang.Object
-
- com.github.weisj.jsvg.parser.ExternalDocumentLoader
-
- All Implemented Interfaces:
DefaultElementLoader.DocumentLoader
@Experimental class ExternalDocumentLoader extends java.lang.Object implements DefaultElementLoader.DocumentLoader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ExternalDocumentLoader.CachedDocument
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.util.Map<java.net.URI,ExternalDocumentLoader.CachedDocument>
cache
private static java.util.logging.Logger
LOGGER
private ElementLoader.ExternalDocumentPolicy
policy
-
Constructor Summary
Constructors Constructor Description ExternalDocumentLoader(ElementLoader.ExternalDocumentPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private @Nullable ParsedDocument
locateDocument(@NotNull ParsedDocument document, @NotNull java.lang.String name)
@Nullable ParsedDocument
resolveDocument(@NotNull ParsedDocument document, @NotNull java.lang.String name)
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
cache
@NotNull private final @NotNull java.util.Map<java.net.URI,ExternalDocumentLoader.CachedDocument> cache
-
policy
@NotNull private final ElementLoader.ExternalDocumentPolicy policy
-
-
Constructor Detail
-
ExternalDocumentLoader
ExternalDocumentLoader(@NotNull ElementLoader.ExternalDocumentPolicy policy)
-
-
Method Detail
-
resolveDocument
@Nullable public @Nullable ParsedDocument resolveDocument(@NotNull @NotNull ParsedDocument document, @NotNull @NotNull java.lang.String name)
- Specified by:
resolveDocument
in interfaceDefaultElementLoader.DocumentLoader
-
locateDocument
@Nullable private @Nullable ParsedDocument locateDocument(@NotNull @NotNull ParsedDocument document, @NotNull @NotNull java.lang.String name)
-
-