Package com.github.weisj.jsvg.parser
Class SVGLoader
- java.lang.Object
-
- com.github.weisj.jsvg.parser.SVGLoader
-
public final class SVGLoader extends java.lang.Object
Class for loading svg files as anSVGDocument
. Note that this class isn't guaranteed to be thread safe and hence shouldn't be used across multiple threads.
-
-
Field Summary
Fields Modifier and Type Field Description private StaxSVGLoader
loader
(package private) static java.util.logging.Logger
LOGGER
private static @NotNull NodeSupplier
NODE_SUPPLIER
-
Constructor Summary
Constructors Constructor Description SVGLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private @Nullable java.io.InputStream
createDocumentInputStream(@NotNull java.io.InputStream is)
@Nullable SVGDocument
load(@NotNull java.io.InputStream inputStream)
@Nullable SVGDocument
load(@NotNull java.io.InputStream inputStream, @NotNull ParserProvider parserProvider)
@Nullable SVGDocument
load(@NotNull java.io.InputStream inputStream, @NotNull ParserProvider parserProvider, @NotNull ResourceLoader resourceLoader)
@Nullable SVGDocument
load(@NotNull java.net.URL xmlBase)
@Nullable SVGDocument
load(@NotNull java.net.URL xmlBase, @NotNull ParserProvider parserProvider)
-
-
-
Field Detail
-
LOGGER
static final java.util.logging.Logger LOGGER
-
NODE_SUPPLIER
@NotNull private static final @NotNull NodeSupplier NODE_SUPPLIER
-
loader
private final StaxSVGLoader loader
-
-
Method Detail
-
load
@Nullable public @Nullable SVGDocument load(@NotNull @NotNull java.net.URL xmlBase)
-
load
@Nullable public @Nullable SVGDocument load(@NotNull @NotNull java.net.URL xmlBase, @NotNull @NotNull ParserProvider parserProvider)
-
load
@Nullable public @Nullable SVGDocument load(@NotNull @NotNull java.io.InputStream inputStream)
-
load
@Nullable public @Nullable SVGDocument load(@NotNull @NotNull java.io.InputStream inputStream, @NotNull @NotNull ParserProvider parserProvider)
-
load
@Nullable public @Nullable SVGDocument load(@NotNull @NotNull java.io.InputStream inputStream, @NotNull @NotNull ParserProvider parserProvider, @NotNull @NotNull ResourceLoader resourceLoader)
-
createDocumentInputStream
@Nullable private @Nullable java.io.InputStream createDocumentInputStream(@NotNull @NotNull java.io.InputStream is)
-
-