gov.nasa.worldwind.servers.wms.formats
Class ImageFormatter
java.lang.Object
gov.nasa.worldwind.servers.wms.formats.ImageFormatter
- Direct Known Subclasses:
- BILImageFormatter, BufferedImageFormatter, DataRasterFormatter, NonComposableImageFormatter, PNGImageFormatter, TiffImageFormatter
public abstract class ImageFormatter
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageFormatter
public ImageFormatter()
asBIL
public java.io.InputStream asBIL()
throws java.io.IOException
- Throws:
java.io.IOException
asDDS
public java.io.InputStream asDDS(java.util.Properties properties)
throws java.io.IOException
- Throws:
java.io.IOException
asJPEG
public java.io.InputStream asJPEG()
throws java.io.IOException
- Throws:
java.io.IOException
asPng
public java.io.InputStream asPng()
throws java.io.IOException
- Throws:
java.io.IOException
asTiff
public java.io.InputStream asTiff()
throws java.io.IOException
- Throws:
java.io.IOException
getFormatterFromMimeType
public static ImageFormatter getFormatterFromMimeType(java.lang.String mimeType,
java.io.File sourceFile)
getStreamFromMimeType
public java.io.InputStream getStreamFromMimeType(java.lang.String mimeType,
java.util.Properties properties)
throws java.io.IOException
- Throws:
java.io.IOException
intermediateToBIL
protected java.io.InputStream intermediateToBIL(java.awt.image.BufferedImage image)
throws java.io.IOException
- Throws:
java.io.IOException
intermediateToDDS
protected java.io.InputStream intermediateToDDS(java.awt.image.BufferedImage image,
java.util.Properties properties)
throws java.io.IOException
- Throws:
java.io.IOException
intermediateToJPEG
protected java.io.InputStream intermediateToJPEG(java.awt.image.BufferedImage image)
throws java.io.IOException
- Throws:
java.io.IOException
intermediateToPng
protected java.io.InputStream intermediateToPng(java.awt.image.BufferedImage image)
throws java.io.IOException
- Throws:
java.io.IOException
intermediateToTiff
protected java.io.InputStream intermediateToTiff(java.awt.image.BufferedImage image)
throws java.io.IOException
- Throws:
java.io.IOException
isSupportedType
public static boolean isSupportedType(java.lang.String mimeType)
toIntermediateForm
public abstract java.awt.image.BufferedImage toIntermediateForm()
throws java.io.IOException
- Throws:
java.io.IOException