de.grogra.imp.io
Class ImageReader
java.lang.Object
de.grogra.pf.io.FilterBase
de.grogra.imp.io.ImageReader
- All Implemented Interfaces:
- Filter, FilterSource, ObjectSource, RegistryContext, Map
public class ImageReader
- extends FilterBase
- implements ObjectSource
Nested classes/interfaces inherited from interface de.grogra.util.Map |
Map.Chain |
Methods inherited from class de.grogra.pf.io.FilterBase |
get, getFilter, getFlavor, getImpl, getMetaData, getRegistry, getSource, getSystemId, initProgressMonitor, setFlavor, setMetaData, setMetaData, setProgress, setSystemId, toString, toURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FLAVOR
public static final IOFlavor FLAVOR
ImageReader
public ImageReader(FilterItem item,
FilterSource source)
createImageIOReader
public static javax.imageio.ImageReader createImageIOReader(java.io.InputStream in,
MimeType mimeType)
throws java.io.IOException
- Throws:
java.io.IOException
getFactory
public static FileFactory getFactory(RegistryContext ctx)
- Returns the file factory item which is responsible for reading
images from streams. The file factory returns objects
of class
FixedImageAdapter
.
- Parameters:
ctx
- the registry context to search for
- Returns:
- the file factory for images in
ctx
getObject
public java.lang.Object getObject()
throws java.io.IOException
- Description copied from interface:
ObjectSource
- Returns the data as an object of a class which is compatible which
the flavor.
- Specified by:
getObject
in interface ObjectSource
- Returns:
- the data
- Throws:
java.io.IOException
installImageIO
public static void installImageIO(Registry reg)