org.geotools.gce.imagemosaic.jdbc
Class ImageDecoderThread

Object
  extended by Thread
      extended by ImageDecoderThread
All Implemented Interfaces:
Runnable

public class ImageDecoderThread
extends Thread

Author:
christian

Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected static Logger LOGGER
          Logger.
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImageDecoderThread(byte[] bytes, String location, GeneralEnvelope tileEnvelope, Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo levelInfo, LinkedBlockingQueue<TileQueueElement> tileQueue, Config config)
           
 
Method Summary
protected  BufferedImage rescaleImageViaPlanarImage(BufferedImage image)
           
 void run()
           
 
Methods inherited from class Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
Logger.

Constructor Detail

ImageDecoderThread

public ImageDecoderThread(byte[] bytes,
                          String location,
                          GeneralEnvelope tileEnvelope,
                          Rectangle pixelDimension,
                          GeneralEnvelope requestEnvelope,
                          ImageLevelInfo levelInfo,
                          LinkedBlockingQueue<TileQueueElement> tileQueue,
                          Config config)
Parameters:
bytes - the image bytes
location - the tile name
tileEnvelope - the georeferencing information for the tile
pixelDimension - the pixel dimension required
requestEnvelope - the requested envelope
levelInfo - the proper levelInfo
tileQueue - the queue where to put the result
config - the reader config
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

rescaleImageViaPlanarImage

protected BufferedImage rescaleImageViaPlanarImage(BufferedImage image)


Copyright © 1996-2014 Geotools. All Rights Reserved.