Class AbstractFactoryModule
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.factory.AbstractFactoryModule
-
- All Implemented Interfaces:
FactoryModule
- Direct Known Subclasses:
AbstractSVGFactoryModule
,AbstractWMFFactoryModule
,GIFImageFactoryModule
,ImageIOFactoryModule
,JPEGImageFactoryModule
,PNGImageFactoryModule
,RejectGifImageFactoryModule
,RejectJPEGImageFactoryModule
,RejectPNGImageFactoryModule
public abstract class AbstractFactoryModule extends Object implements FactoryModule
Creation-Date: 05.04.2006, 17:44:42- Author:
- Thomas Morgner
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.factory.FactoryModule
FEELING_LUCKY, RECOGNIZED_CONTENTTYPE, RECOGNIZED_FILE, RECOGNIZED_FINGERPRINT, REJECTED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFactoryModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
canHandleResource(ResourceManager caller, ResourceData data)
protected boolean
canHandleResourceByContent(InputStream data)
protected boolean
canHandleResourceByMimeType(String name)
protected boolean
canHandleResourceByName(String name)
protected abstract String[]
getFileExtensions()
protected abstract int[]
getFingerPrint()
int
getHeaderFingerprintSize()
protected abstract String[]
getMimeTypes()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.libraries.resourceloader.factory.FactoryModule
create
-
-
-
-
Method Detail
-
getFingerPrint
protected abstract int[] getFingerPrint()
-
getMimeTypes
protected abstract String[] getMimeTypes()
-
getFileExtensions
protected abstract String[] getFileExtensions()
-
getHeaderFingerprintSize
public int getHeaderFingerprintSize()
- Specified by:
getHeaderFingerprintSize
in interfaceFactoryModule
-
canHandleResource
public int canHandleResource(ResourceManager caller, ResourceData data) throws ResourceCreationException, ResourceLoadingException
- Specified by:
canHandleResource
in interfaceFactoryModule
- Throws:
ResourceCreationException
ResourceLoadingException
-
canHandleResourceByContent
protected boolean canHandleResourceByContent(InputStream data) throws IOException
- Throws:
IOException
-
canHandleResourceByMimeType
protected boolean canHandleResourceByMimeType(String name)
-
canHandleResourceByName
protected boolean canHandleResourceByName(String name)
-
-