java.lang.Object
org.jhotdraw8.svg.io.FigureSvgTinyReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the errors list.Gets a copy of the errors list.booleanReturns true if the reader runs in best effort mode.Warning: this method does not close the input source.voidsetBestEffort(boolean bestEffort)
-
Field Details
-
SVG_NAMESPACE
- See Also:
-
XML_NAMESPACE
- See Also:
-
-
Constructor Details
-
FigureSvgTinyReader
public FigureSvgTinyReader()
-
-
Method Details
-
isBestEffort
public boolean isBestEffort()Returns true if the reader runs in best effort mode.If best effort mode is true, the reader attempts to perform error processing as specified in SVG 1.2 Error processing .
If best effort mode is false, the reader throws an exception at every element or value that it does not understand.
The default value is false.
- Returns:
- whether the reader runs in best effort mode.
-
setBestEffort
public void setBestEffort(boolean bestEffort) -
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
Warning: this method does not close the input source.- Throws:
IOException
-
clearErrors
public void clearErrors()Clears the errors list. -
getCopyOfErrors
Gets a copy of the errors list.- Returns:
- a copy of the errors list
-