Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 Class Summary

Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
`FilterSource.MetaDataKey<V>`

Nested classes/interfaces inherited from interface de.grogra.util.Map
`Map.Chain`

Field Summary
`static IOFlavor` | `FLAVOR`

Fields inherited from class de.grogra.pf.io.FilterBase
`item, source`

Fields inherited from interface de.grogra.pf.io.FilterSource
`AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL`

Fields inherited from interface de.grogra.util.Map
`DEFAULT_VALUE, EMPTY_MAP`

Constructor Summary
`ImageReader(FilterItem item, FilterSource source)`

Method Summary
`static javax.imageio.ImageReader` | `createImageIOReader(java.io.InputStream in, MimeType mimeType)`
`static FileFactory` | `getFactory(RegistryContext ctx)` Returns the file factory item which is responsible for reading images from streams.
`java.lang.Object` | `getObject()` Returns the data as an object of a class which is compatible which the flavor.
`static void` | `installImageIO(Registry reg)`

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`

Methods inherited from interface de.grogra.pf.io.FilterSource
`getFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgress`

Methods inherited from interface de.grogra.pf.registry.RegistryContext
`getRegistry`

Field Detail

### FLAVOR

    public static final IOFlavor FLAVOR

Constructor Detail

### ImageReader

    public ImageReader(FilterItem item,
                       FilterSource source)

Method Detail

### 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)

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD