Package org.apache.batik.apps.svgbrowser
Class SVGInputHandler
java.lang.Object
org.apache.batik.apps.svgbrowser.SVGInputHandler
- All Implemented Interfaces:
SquiggleInputHandler
This implementation of the
SquiggleInputHandler
class
simply displays an SVG file into the JSVGCanvas.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the input file can be handled.boolean
Returns true if the resource at the given path can be handledboolean
Returns true if the input URI can be handled by the handlerReturns a description for this handler.String[]
Returns the list of file extensions handled by this handlerString[]
Returns the list of mime types handled by this handler.void
handle
(ParsedURL purl, JSVGViewerFrame svgViewerFrame) Handles the given input for the given JSVGViewerFrame
-
Field Details
-
SVG_MIME_TYPES
-
SVG_FILE_EXTENSIONS
-
-
Constructor Details
-
SVGInputHandler
public SVGInputHandler()
-
-
Method Details
-
getHandledMimeTypes
Returns the list of mime types handled by this handler.- Specified by:
getHandledMimeTypes
in interfaceSquiggleInputHandler
-
getHandledExtensions
Returns the list of file extensions handled by this handler- Specified by:
getHandledExtensions
in interfaceSquiggleInputHandler
-
getDescription
Returns a description for this handler.- Specified by:
getDescription
in interfaceSquiggleInputHandler
-
handle
Handles the given input for the given JSVGViewerFrame- Specified by:
handle
in interfaceSquiggleInputHandler
-
accept
Returns true if the input file can be handled.- Specified by:
accept
in interfaceSquiggleInputHandler
-
accept
Returns true if the input URI can be handled by the handler- Specified by:
accept
in interfaceSquiggleInputHandler
- Parameters:
purl
- URL describing the candidate input
-
accept
Returns true if the resource at the given path can be handled
-