Package org.apache.batik.apps.rasterizer
Class SVGConverterFileSource
- java.lang.Object
-
- org.apache.batik.apps.rasterizer.SVGConverterFileSource
-
- All Implemented Interfaces:
SVGConverterSource
public class SVGConverterFileSource extends java.lang.Object implements SVGConverterSource
Describes a file source for theSVGConverter- Version:
- $Id: SVGConverterFileSource.java 1808888 2017-09-19 14:22:11Z ssteiner $
-
-
Constructor Summary
Constructors Constructor Description SVGConverterFileSource(java.io.File file)SVGConverterFileSource(java.io.File file, java.lang.String ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.io.FilegetFile()java.lang.StringgetName()Returns the name of the source.java.lang.StringgetURI()Returns a URI string corresponding to this sourceinthashCode()booleanisReadable()Checks if source can be readbooleanisSameAs(java.lang.String srcStr)Checks if same as source described by srcStrjava.io.InputStreamopenStream()Gets aTranscoderInputfor that sourcejava.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:SVGConverterSourceReturns the name of the source. That would be the name for a File or URL- Specified by:
getNamein interfaceSVGConverterSource
-
getFile
public java.io.File getFile()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getURI
public java.lang.String getURI()
Description copied from interface:SVGConverterSourceReturns a URI string corresponding to this source- Specified by:
getURIin interfaceSVGConverterSource
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
openStream
public java.io.InputStream openStream() throws java.io.FileNotFoundExceptionDescription copied from interface:SVGConverterSourceGets aTranscoderInputfor that source- Specified by:
openStreamin interfaceSVGConverterSource- Throws:
java.io.FileNotFoundException
-
isSameAs
public boolean isSameAs(java.lang.String srcStr)
Description copied from interface:SVGConverterSourceChecks if same as source described by srcStr- Specified by:
isSameAsin interfaceSVGConverterSource
-
isReadable
public boolean isReadable()
Description copied from interface:SVGConverterSourceChecks if source can be read- Specified by:
isReadablein interfaceSVGConverterSource
-
-