NASA World Wind WMS

gov.nasa.worldwind.servers.wms.formats
Class ImageFormatter

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.formats.ImageFormatter
Direct Known Subclasses:
BufferedImageFormatter, PNGImageFormatter

public abstract class ImageFormatter
extends Object


Constructor Summary
ImageFormatter()
           
 
Method Summary
 InputStream asDDS()
           
 InputStream asPng()
           
static ImageFormatter getFormatterFromMimeType(String mimeType, File sourceFile)
           
 InputStream getStreamFromMimeType(String mimeType)
           
protected  InputStream intermediateToDDS(BufferedImage image)
           
protected  InputStream intermediateToPng(BufferedImage image)
           
static boolean isSupportedType(String mimeType)
           
abstract  BufferedImage toIntermediateForm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFormatter

public ImageFormatter()
Method Detail

asDDS

public InputStream asDDS()
                  throws IOException
Throws:
IOException

asPng

public InputStream asPng()
                  throws IOException
Throws:
IOException

getFormatterFromMimeType

public static ImageFormatter getFormatterFromMimeType(String mimeType,
                                                      File sourceFile)

getStreamFromMimeType

public InputStream getStreamFromMimeType(String mimeType)
                                  throws IOException
Throws:
IOException

intermediateToDDS

protected InputStream intermediateToDDS(BufferedImage image)
                                 throws IOException
Throws:
IOException

intermediateToPng

protected InputStream intermediateToPng(BufferedImage image)
                                 throws IOException
Throws:
IOException

isSupportedType

public static boolean isSupportedType(String mimeType)

toIntermediateForm

public abstract BufferedImage toIntermediateForm()
                                          throws IOException
Throws:
IOException

NASA World Wind WMS