gov.nasa.worldwind.servers.wms.formats
Class ImageFormatter
java.lang.Object
gov.nasa.worldwind.servers.wms.formats.ImageFormatter
- Direct Known Subclasses:
- BufferedImageFormatter, PNGImageFormatter
public abstract class ImageFormatter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageFormatter
public ImageFormatter()
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