Package com.github.weisj.jsvg.parser
Class StaxSVGLoader
- java.lang.Object
-
- com.github.weisj.jsvg.parser.StaxSVGLoader
-
public final class StaxSVGLoader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
LOGGER
private @NotNull NodeSupplier
nodeSupplier
private static java.lang.String
SVG_NAMESPACE_URI
private static java.lang.String
XLINK_NAMESPACE_URI
private @NotNull javax.xml.stream.XMLInputFactory
xmlInputFactory
-
Constructor Summary
Constructors Constructor Description StaxSVGLoader(@NotNull NodeSupplier nodeSupplier)
StaxSVGLoader(@NotNull NodeSupplier nodeSupplier, @NotNull javax.xml.stream.XMLInputFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static @NotNull javax.xml.stream.XMLInputFactory
createDefaultFactory()
private @Nullable javax.xml.stream.XMLEventReader
createReader(@Nullable java.io.InputStream inputStream)
@Nullable SVGDocument
load(@Nullable java.io.InputStream inputStream, @NotNull ParserProvider parserProvider, @NotNull ResourceLoader resourceLoader)
Deprecated.useload(InputStream, URI, LoaderContext)
instead@Nullable SVGDocument
load(@Nullable java.io.InputStream inputStream, @Nullable java.net.URI xmlBase, @NotNull LoaderContext loaderContext)
(package private) @Nullable SVGDocumentBuilder
parse(@Nullable java.io.InputStream inputStream, @Nullable java.net.URI xmlBase, @NotNull LoaderContext loaderContext)
private static java.lang.String
qualifiedName(@NotNull javax.xml.namespace.QName name)
private static void
skipElement(@NotNull javax.xml.stream.XMLEventReader reader)
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
SVG_NAMESPACE_URI
private static final java.lang.String SVG_NAMESPACE_URI
- See Also:
- Constant Field Values
-
XLINK_NAMESPACE_URI
private static final java.lang.String XLINK_NAMESPACE_URI
- See Also:
- Constant Field Values
-
nodeSupplier
@NotNull private final @NotNull NodeSupplier nodeSupplier
-
xmlInputFactory
@NotNull private final @NotNull javax.xml.stream.XMLInputFactory xmlInputFactory
-
-
Constructor Detail
-
StaxSVGLoader
public StaxSVGLoader(@NotNull @NotNull NodeSupplier nodeSupplier)
-
StaxSVGLoader
public StaxSVGLoader(@NotNull @NotNull NodeSupplier nodeSupplier, @NotNull @NotNull javax.xml.stream.XMLInputFactory factory)
-
-
Method Detail
-
createDefaultFactory
@NotNull private static @NotNull javax.xml.stream.XMLInputFactory createDefaultFactory()
-
createReader
@Nullable private @Nullable javax.xml.stream.XMLEventReader createReader(@Nullable @Nullable java.io.InputStream inputStream)
-
load
@Deprecated @Nullable public @Nullable SVGDocument load(@Nullable @Nullable java.io.InputStream inputStream, @NotNull @NotNull ParserProvider parserProvider, @NotNull @NotNull ResourceLoader resourceLoader) throws java.io.IOException, javax.xml.stream.XMLStreamException
Deprecated.useload(InputStream, URI, LoaderContext)
instead- Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
-
parse
@Internal @Nullable @Nullable SVGDocumentBuilder parse(@Nullable @Nullable java.io.InputStream inputStream, @Nullable @Nullable java.net.URI xmlBase, @NotNull @NotNull LoaderContext loaderContext) throws java.io.IOException, javax.xml.stream.XMLStreamException
- Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
-
load
@Nullable public @Nullable SVGDocument load(@Nullable @Nullable java.io.InputStream inputStream, @Nullable @Nullable java.net.URI xmlBase, @NotNull @NotNull LoaderContext loaderContext) throws java.io.IOException, javax.xml.stream.XMLStreamException
- Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
-
skipElement
private static void skipElement(@NotNull @NotNull javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
qualifiedName
private static java.lang.String qualifiedName(@NotNull @NotNull javax.xml.namespace.QName name)
-
-