org.apache.batik.apps.svgbrowser

Class SVGInputHandler

public class SVGInputHandler extends Object implements SquiggleInputHandler

This implementation of the SquiggleInputHandler class simply displays an SVG file into the JSVGCanvas.
Field Summary
static String[]SVG_FILE_EXTENSIONS
static String[]SVG_MIME_TYPES
Method Summary
booleanaccept(File f)
Returns true if the input file can be handled.
booleanaccept(ParsedURL purl)
Returns true if the input URI can be handled by the handler
booleanaccept(String path)
Returns true if the resource at the given path can be handled
StringgetDescription()
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.
voidhandle(ParsedURL purl, JSVGViewerFrame svgViewerFrame)
Handles the given input for the given JSVGViewerFrame

Field Detail

SVG_FILE_EXTENSIONS

public static final String[] SVG_FILE_EXTENSIONS

SVG_MIME_TYPES

public static final String[] SVG_MIME_TYPES

Method Detail

accept

public boolean accept(File f)
Returns true if the input file can be handled.

accept

public boolean accept(ParsedURL purl)
Returns true if the input URI can be handled by the handler

accept

public boolean accept(String path)
Returns true if the resource at the given path can be handled

getDescription

public String getDescription()
Returns a description for this handler.

getHandledExtensions

public String[] getHandledExtensions()
Returns the list of file extensions handled by this handler

getHandledMimeTypes

public String[] getHandledMimeTypes()
Returns the list of mime types handled by this handler.

handle

public void handle(ParsedURL purl, JSVGViewerFrame svgViewerFrame)
Handles the given input for the given JSVGViewerFrame
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.