Class SVGDocumentBuilder
java.lang.Object
com.github.weisj.jsvg.parser.impl.SVGDocumentBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull Deque<@NotNull ParsedElement> private final @NotNull LoaderContextprivate final @NotNull NodeSupplierprivate final @NotNull ParsedDocumentprivate ParsedElementprivate final @NotNull List<@NotNull StyleSheet> -
Constructor Summary
ConstructorsConstructorDescriptionSVGDocumentBuilder(@Nullable URI rootURI, @NotNull LoaderContext loaderContext, @NotNull NodeSupplier nodeSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTextContent(char @NotNull [] characterData, int startOffset, int endOffset) @NotNull SVGDocumentbuild()voidvoidendElement(@NotNull String tagName) private voidflushText(@NotNull ParsedElement element, boolean segmentBreak) private intnestingDepthOf(@NotNull SVGNode node, @NotNull Map<SVGNode, Integer> checkedNodes) (package private) @NotNull ParsedDocument(package private) voidprivate voidvoidbooleanstartElement(@NotNull String tagName, @NotNull Map<String, String> attributes) private voidprivate void
-
Field Details
-
parsedDocument
-
useElements
-
styleElements
-
styleSheets
-
currentNodeStack
-
loaderContext
-
nodeSupplier
-
rootNode
-
-
Constructor Details
-
SVGDocumentBuilder
public SVGDocumentBuilder(@Nullable @Nullable URI rootURI, @NotNull @NotNull LoaderContext loaderContext, @NotNull @NotNull NodeSupplier nodeSupplier)
-
-
Method Details
-
parsedDocument
-
startDocument
public void startDocument() -
endDocument
public void endDocument() -
startElement
-
addTextContent
public void addTextContent(char @NotNull [] characterData, int startOffset, int endOffset) -
endElement
-
flushText
-
preProcess
void preProcess() -
build
-
processStyleSheets
private void processStyleSheets() -
validatePathCount
private void validatePathCount() -
validateUseElementsDepth
private void validateUseElementsDepth() -
nestingDepthOf
-