org.apache.batik.apps.svgbrowser
Class  SVGInputHandler
java.lang.Object
  |
  +--org.apache.batik.apps.svgbrowser.SVGInputHandler
- All Implemented Interfaces: 
- SquiggleInputHandler
- public class SVGInputHandler- extends java.lang.Object- implements SquiggleInputHandler
This implementation of the SquiggleInputHandler class
 simply displays an SVG file into the JSVGCanvas.
 
 
| Method Summary | 
|  boolean | accept(java.io.File f)Returns true if the input file can be handled.
 | 
|  boolean | accept(ParsedURL purl)Returns true if the input URI can be handled by the handler
 | 
|  boolean | accept(java.lang.String path)Returns true if the resource at the given path can be handled
 | 
|  java.lang.String | getDescription()Returns a description for this handler.
 | 
|  java.lang.String[] | getHandledExtensions()Returns the list of file extensions handled by this handler
 | 
|  java.lang.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
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SVG_MIME_TYPES
public static final java.lang.String[] SVG_MIME_TYPES
SVG_FILE_EXTENSIONS
public static final java.lang.String[] SVG_FILE_EXTENSIONS
SVGInputHandler
public SVGInputHandler()
getHandledMimeTypes
public java.lang.String[] getHandledMimeTypes()
- Returns the list of mime types handled by this handler.- 
- Specified by: 
- getHandledMimeTypesin interface- SquiggleInputHandler
 
getHandledExtensions
public java.lang.String[] getHandledExtensions()
- Returns the list of file extensions handled by this handler- 
- Specified by: 
- getHandledExtensionsin interface- SquiggleInputHandler
 
getDescription
public java.lang.String getDescription()
- Returns a description for this handler.- 
- Specified by: 
- getDescriptionin interface- SquiggleInputHandler
 
handle
public void handle(ParsedURL purl,
                   JSVGViewerFrame svgViewerFrame)
- Handles the given input for the given JSVGViewerFrame- 
- Specified by: 
- handlein interface- SquiggleInputHandler
 
accept
public boolean accept(java.io.File f)
- Returns true if the input file can be handled.- 
- Specified by: 
- acceptin interface- SquiggleInputHandler
 
accept
public boolean accept(ParsedURL purl)
- Returns true if the input URI can be handled by the handler- 
- Specified by: 
- acceptin interface- SquiggleInputHandler
 
- Following copied from interface: org.apache.batik.apps.svgbrowser.SquiggleInputHandler
- 
- Parameters:
- purl- URL describing the candidate input
 
accept
public boolean accept(java.lang.String path)
- Returns true if the resource at the given path can be handled- 
 
Copyright © 2002 Apache Software Foundation. All Rights Reserved.