|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.imageio.ImageReader
it.tidalwave.imageio.raw.RAWImageReaderSupport
it.tidalwave.imageio.crw.CRWImageReader
public class CRWImageReader
| Field Summary |
|---|
| Fields inherited from class it.tidalwave.imageio.raw.RAWImageReaderSupport |
|---|
headerProcessor, iis, makerNote, metadata, metadataLoaded, primaryDirectory |
| Fields inherited from class javax.imageio.ImageReader |
|---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
| Constructor Summary | |
|---|---|
protected |
CRWImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider)
|
| Method Summary | |
|---|---|
protected void |
checkThumbnailIndex(int thumbnailIndex)
|
protected RAWMetadataSupport |
createMetadata(Directory primaryDirectory,
Directory imageDirector)
This method must be implemented by concrete subclasses to create an instance of RAWMetadataSupport. |
protected void |
disposeAll()
Releases all the allocated resources. |
int |
getHeight(int imageIndex)
|
int |
getNumThumbnails(int imageIndex)
|
int |
getThumbnailHeight(int imageIndex,
int thumbnailIndex)
|
int |
getThumbnailWidth(int imageIndex,
int thumbnailIndex)
|
int |
getWidth(int imageIndex)
|
protected Directory |
loadPrimaryDirectory()
Loads the primary directory. |
protected java.awt.image.WritableRaster |
loadRAWRaster()
This method must be implemented by concrete subclasses to load an image raster. |
protected java.awt.image.BufferedImage |
loadThumbnail(int imageIndex,
int thumbnailIndex)
This method must be implemented by concrete subclasses to load a thumbnail. |
protected void |
processEXIFAndMakerNote(Directory directory,
RAWImageInputStream iis)
Processes the EXIF metadata, if present. |
protected void |
processMakerNote(RAWImageInputStream iis)
Processes the maker note. |
protected void |
processMetadata()
Analyzes and sets various variables to point at different pieces of metadata. |
protected java.lang.Object |
wrapInput(java.lang.Object input)
Gives a chance to use a decorator for the input object. |
| Methods inherited from class it.tidalwave.imageio.raw.RAWImageReaderSupport |
|---|
checkImageIndex, checkMetadataIsLoaded, createImage, dispose, ensureMetadataIsLoaded, failure, getImageMetadata, getImageTypes, getNumImages, getStreamMetadata, loadEmbeddedImage, loadImage, loadMetadata, loadRAWImage, processImageProgress, read, readerSupportsThumbnails, readThumbnail, reset, setInput |
| Methods inherited from class javax.imageio.ImageReader |
|---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readRaster, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CRWImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider)
| Method Detail |
|---|
public int getNumThumbnails(int imageIndex)
throws java.io.IOException
getNumThumbnails in class javax.imageio.ImageReaderjava.io.IOException
public int getWidth(int imageIndex)
throws java.io.IOException
getWidth in class javax.imageio.ImageReaderjava.io.IOException
public int getHeight(int imageIndex)
throws java.io.IOException
getHeight in class javax.imageio.ImageReaderjava.io.IOException
public int getThumbnailWidth(int imageIndex,
int thumbnailIndex)
throws java.io.IOException
getThumbnailWidth in class javax.imageio.ImageReaderjava.io.IOException
public int getThumbnailHeight(int imageIndex,
int thumbnailIndex)
throws java.io.IOException
getThumbnailHeight in class javax.imageio.ImageReaderjava.io.IOException
protected Directory loadPrimaryDirectory()
throws java.io.IOException
RAWImageReaderSupport
loadPrimaryDirectory in class RAWImageReaderSupportjava.io.IOException - if an I/O error occurs
protected java.awt.image.BufferedImage loadThumbnail(int imageIndex,
int thumbnailIndex)
throws java.io.IOException
RAWImageReaderSupport
loadThumbnail in class RAWImageReaderSupportimageIndex - the index of the imagethumbnailIndex - the index of the thumbnail to load
java.io.IOException - if an I/O error occurs
protected java.awt.image.WritableRaster loadRAWRaster()
throws java.io.IOException
RAWImageReaderSupport
loadRAWRaster in class RAWImageReaderSupportjava.io.IOException - if an I/O error occursprotected void checkThumbnailIndex(int thumbnailIndex)
protected void processMetadata()
throws java.io.IOException
RAWImageReaderSupport
processMetadata in class RAWImageReaderSupportjava.io.IOException - if an I/O error occursprotected void disposeAll()
disposeAll in class RAWImageReaderSupportprotected java.lang.Object wrapInput(java.lang.Object input)
RAWImageReaderSupport
wrapInput in class RAWImageReaderSupportinput - the input object
protected void processEXIFAndMakerNote(Directory directory,
RAWImageInputStream iis)
throws java.io.IOException
directory - the primary directoryiis - the image input stream
java.io.IOException - if an I/O error occurs
protected RAWMetadataSupport createMetadata(Directory primaryDirectory,
Directory imageDirector)
RAWImageReaderSupportRAWMetadataSupport. Each SPI should use its own subclass.
createMetadata in class RAWImageReaderSupportprimaryDirectory - the primary directoryimageDirector - the image directory
protected void processMakerNote(RAWImageInputStream iis)
throws java.io.IOException
iis - the ImageInputStream
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||