Class SVGDocumentBuilder


  • public final class SVGDocumentBuilder
    extends java.lang.Object
    • Field Detail

      • parsedDocument

        @NotNull
        private final @NotNull ParsedDocument parsedDocument
      • useElements

        @NotNull
        private final @NotNull java.util.List<@NotNull Use> useElements
      • styleElements

        @NotNull
        private final @NotNull java.util.List<@NotNull Style> styleElements
      • styleSheets

        @NotNull
        private final @NotNull java.util.List<@NotNull StyleSheet> styleSheets
      • currentNodeStack

        @NotNull
        private final @NotNull java.util.Deque<@NotNull ParsedElement> currentNodeStack
      • parserProvider

        @NotNull
        private final @NotNull ParserProvider parserProvider
      • loadHelper

        @NotNull
        private final @NotNull LoadHelper loadHelper
      • nodeSupplier

        @NotNull
        private final @NotNull NodeSupplier nodeSupplier
    • Method Detail

      • parsedDocument

        @Internal
        @NotNull
        @NotNull ParsedDocument parsedDocument()
      • startDocument

        public void startDocument()
      • endDocument

        public void endDocument()
      • startElement

        public boolean startElement​(@NotNull
                                    @NotNull java.lang.String tagName,
                                    @NotNull
                                    @NotNull java.util.Map<java.lang.String,​java.lang.String> attributes)
      • addTextContent

        public void addTextContent​(char @NotNull [] characterData,
                                   int startOffset,
                                   int endOffset)
      • endElement

        public void endElement​(@NotNull
                               @NotNull java.lang.String tagName)
      • flushText

        private void flushText​(@NotNull
                               @NotNull ParsedElement element,
                               boolean segmentBreak)
      • preProcess

        void preProcess​(@Nullable
                        @Nullable java.net.URI documentUri)
      • postProcess

        void postProcess()
      • processStyleSheets

        private void processStyleSheets()
      • validateUseElements

        private void validateUseElements()
      • checkNestingDepth

        private void checkNestingDepth​(@NotNull
                                       @NotNull SVGNode node,
                                       int allowed_depth)