org.apache.batik.apps.svgbrowser
public class XMLInputHandler extends Object implements SquiggleInputHandler
| Nested Class Summary | |
|---|---|
| class | XMLInputHandler.DocumentURIResolver
Implements the URIResolver interface so that relative urls used in
transformations are resolved properly. |
| Field Summary | |
|---|---|
| static String | ERROR_NO_XML_STYLESHEET_PROCESSING_INSTRUCTION |
| static String | ERROR_RESULT_GENERATED_EXCEPTION |
| static String | ERROR_TRANSFORM_OUTPUT_NOT_SVG |
| static String | ERROR_TRANSFORM_OUTPUT_WRONG_NS |
| static String | ERROR_TRANSFORM_PRODUCED_NO_CONTENT |
| static String | PSEUDO_ATTRIBUTE_HREF |
| static String | PSEUDO_ATTRIBUTE_TYPE |
| static String | XSL_PROCESSING_INSTRUCTION_TYPE |
| static String[] | XVG_FILE_EXTENSIONS |
| static String[] | XVG_MIME_TYPES |
| Method Summary | |
|---|---|
| boolean | accept(File f)
Returns true if the input file can be handled by the handler |
| boolean | accept(ParsedURL purl)
Returns true if the input URI can be handled by the handler |
| boolean | accept(String path)
Return true if the resource with the given path can
be handled. |
| protected void | checkAndPatch(Document doc)
This method checks that the generated content is SVG.
|
| protected String | extractXSLProcessingInstruction(Document doc)
Extracts the first XSL processing instruction from the input
XML document. |
| String | getDescription()
Returns a description for this handler |
| String[] | getHandledExtensions()
Returns the list of file extensions handled by this handler |
| String[] | getHandledMimeTypes()
Returns the list of mime types handled by this handler. |
| void | handle(ParsedURL purl, JSVGViewerFrame svgViewerFrame)
Handles the given input for the given JSVGViewerFrame |