Package com.github.weisj.jsvg.parser
Class StaxSVGLoader
java.lang.Object
com.github.weisj.jsvg.parser.StaxSVGLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Logger
private final @NotNull NodeSupplier
private static final String
private static final String
private final @NotNull XMLInputFactory
-
Constructor Summary
ConstructorsConstructorDescriptionStaxSVGLoader
(@NotNull NodeSupplier nodeSupplier) StaxSVGLoader
(@NotNull NodeSupplier nodeSupplier, @NotNull XMLInputFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprivate static @NotNull XMLInputFactory
private @Nullable XMLEventReader
createReader
(@Nullable InputStream inputStream) @Nullable SVGDocument
load
(@Nullable InputStream inputStream, @NotNull ParserProvider parserProvider, @NotNull ResourceLoader resourceLoader) Deprecated.@Nullable SVGDocument
load
(@Nullable InputStream inputStream, @Nullable URI xmlBase, @NotNull LoaderContext loaderContext) (package private) @Nullable SVGDocumentBuilder
parse
(@Nullable InputStream inputStream, @Nullable URI xmlBase, @NotNull LoaderContext loaderContext) private static String
qualifiedName
(@NotNull QName name) private static void
skipElement
(@NotNull XMLEventReader reader)
-
Field Details
-
LOGGER
-
SVG_NAMESPACE_URI
- See Also:
-
XLINK_NAMESPACE_URI
- See Also:
-
nodeSupplier
-
xmlInputFactory
-
-
Constructor Details
-
StaxSVGLoader
-
StaxSVGLoader
public StaxSVGLoader(@NotNull @NotNull NodeSupplier nodeSupplier, @NotNull @NotNull XMLInputFactory factory)
-
-
Method Details
-
createDefaultFactory
-
createReader
@Nullable private @Nullable XMLEventReader createReader(@Nullable @Nullable InputStream inputStream) -
load
@Deprecated @Nullable public @Nullable SVGDocument load(@Nullable @Nullable InputStream inputStream, @NotNull @NotNull ParserProvider parserProvider, @NotNull @NotNull ResourceLoader resourceLoader) throws IOException, XMLStreamException Deprecated.useload(InputStream, URI, LoaderContext)
instead- Throws:
IOException
XMLStreamException
-
parse
@Internal @Nullable @Nullable SVGDocumentBuilder parse(@Nullable @Nullable InputStream inputStream, @Nullable @Nullable URI xmlBase, @NotNull @NotNull LoaderContext loaderContext) throws IOException, XMLStreamException - Throws:
IOException
XMLStreamException
-
load
@Nullable public @Nullable SVGDocument load(@Nullable @Nullable InputStream inputStream, @Nullable @Nullable URI xmlBase, @NotNull @NotNull LoaderContext loaderContext) throws IOException, XMLStreamException - Throws:
IOException
XMLStreamException
-
skipElement
- Throws:
XMLStreamException
-
qualifiedName
-
load(InputStream, URI, LoaderContext)
instead