Class StaxSVGLoader


  • public final class StaxSVGLoader
    extends java.lang.Object
    • 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.
        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)