Package com.github.weisj.jsvg.parser
Class SVGDocumentBuilder
java.lang.Object
com.github.weisj.jsvg.parser.SVGDocumentBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull Deque
<@NotNull ParsedElement> private final @NotNull LoadHelper
private static final int
private final @NotNull NodeSupplier
private final @NotNull ParsedDocument
private final @NotNull ParserProvider
private ParsedElement
private final @NotNull List
<@NotNull StyleSheet> -
Constructor Summary
ConstructorsConstructorDescriptionSVGDocumentBuilder
(@NotNull ParserProvider parserProvider, @NotNull ResourceLoader resourceLoader, @NotNull NodeSupplier nodeSupplier) Deprecated.SVGDocumentBuilder
(@Nullable URI rootURI, @NotNull LoaderContext loaderContext, @NotNull NodeSupplier nodeSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTextContent
(char @NotNull [] characterData, int startOffset, int endOffset) @NotNull SVGDocument
build()
private void
checkNestingDepth
(@NotNull SVGNode node, int allowed_depth) void
void
endElement
(@NotNull String tagName) private void
flushText
(@NotNull ParsedElement element, boolean segmentBreak) (package private) @NotNull ParsedDocument
(package private) void
(package private) void
preProcess
(@Nullable URI documentUri) private void
void
boolean
startElement
(@NotNull String tagName, @NotNull Map<String, String> attributes) private void
-
Field Details
-
MAX_USE_NESTING_DEPTH
private static final int MAX_USE_NESTING_DEPTH- See Also:
-
parsedDocument
-
useElements
-
styleElements
-
styleSheets
-
currentNodeStack
-
parserProvider
-
loadHelper
-
nodeSupplier
-
rootNode
-
-
Constructor Details
-
SVGDocumentBuilder
@Deprecated public SVGDocumentBuilder(@NotNull @NotNull ParserProvider parserProvider, @NotNull @NotNull ResourceLoader resourceLoader, @NotNull @NotNull NodeSupplier nodeSupplier) Deprecated. -
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
-
postProcess
void postProcess() -
build
-
processStyleSheets
private void processStyleSheets() -
validateUseElements
private void validateUseElements() -
checkNestingDepth
-
SVGDocumentBuilder(URI, LoaderContext, NodeSupplier)
instead