org.apache.batik.apps.rasterizer
Class SVGConverterFileSource

java.lang.Object
  extended by org.apache.batik.apps.rasterizer.SVGConverterFileSource
All Implemented Interfaces:
SVGConverterSource

public class SVGConverterFileSource
extends Object
implements SVGConverterSource

Describes a file source for the SVGConverter


Constructor Summary
SVGConverterFileSource(File file)
           
SVGConverterFileSource(File file, String ref)
           
 
Method Summary
 boolean equals(Object o)
           
 File getFile()
           
 String getName()
          Returns the name of the source.
 String getURI()
          Returns a URI string corresponding to this source
 int hashCode()
           
 boolean isReadable()
          Checks if source can be read
 boolean isSameAs(String srcStr)
          Checks if same as source described by srcStr
 InputStream openStream()
          Gets a TranscoderInput for that source
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVGConverterFileSource

public SVGConverterFileSource(File file)

SVGConverterFileSource

public SVGConverterFileSource(File file,
                              String ref)
Method Detail

getName

public String getName()
Description copied from interface: SVGConverterSource
Returns the name of the source. That would be the name for a File or URL

Specified by:
getName in interface SVGConverterSource

getFile

public File getFile()

toString

public String toString()
Overrides:
toString in class Object

getURI

public String getURI()
Description copied from interface: SVGConverterSource
Returns a URI string corresponding to this source

Specified by:
getURI in interface SVGConverterSource

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

openStream

public InputStream openStream()
                       throws FileNotFoundException
Description copied from interface: SVGConverterSource
Gets a TranscoderInput for that source

Specified by:
openStream in interface SVGConverterSource
Throws:
FileNotFoundException

isSameAs

public boolean isSameAs(String srcStr)
Description copied from interface: SVGConverterSource
Checks if same as source described by srcStr

Specified by:
isSameAs in interface SVGConverterSource

isReadable

public boolean isReadable()
Description copied from interface: SVGConverterSource
Checks if source can be read

Specified by:
isReadable in interface SVGConverterSource


Copyright © 2008 Apache Software Foundation. All Rights Reserved.