|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.data.AbstractDataRasterWriter
public abstract class AbstractDataRasterWriter
| Field Summary | |
|---|---|
protected String[] |
mimeTypes
|
protected String[] |
suffixes
|
| Constructor Summary | |
|---|---|
AbstractDataRasterWriter()
Default constructor |
|
AbstractDataRasterWriter(String[] mimeTypes,
String[] suffixes)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canWrite(DataRaster raster,
String formatSuffix,
File file)
Checks if a data raster could be written to a File the given format. |
protected String[] |
copyAndConvertToLowerCase(String[] array)
Clones string array and also converts clones to lower case |
protected abstract boolean |
doCanWrite(DataRaster raster,
String formatSuffix,
File file)
|
protected abstract void |
doWrite(DataRaster raster,
String formatSuffix,
File file)
|
void |
write(DataRaster raster,
String formatSuffix,
File file)
Writes an data raster to a File in the given format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String[] mimeTypes
protected final String[] suffixes
| Constructor Detail |
|---|
public AbstractDataRasterWriter()
public AbstractDataRasterWriter(String[] mimeTypes,
String[] suffixes)
mimeTypes - MIME types as array ofStringssuffixes - Suffixes (extensions) as array ofStrings| Method Detail |
|---|
public boolean canWrite(DataRaster raster,
String formatSuffix,
File file)
canWrite in interface DataRasterWriterraster - a data raster to be written to a File in the given format.formatSuffix - a String containing the format suffixfile - a File to be written to
TRUE, if a data raster could be written to the Fileprotected String[] copyAndConvertToLowerCase(String[] array)
array - string array
protected abstract boolean doCanWrite(DataRaster raster,
String formatSuffix,
File file)
protected abstract void doWrite(DataRaster raster,
String formatSuffix,
File file)
throws IOException
IOException
public void write(DataRaster raster,
String formatSuffix,
File file)
throws IOException
File in the given format.
If there is already a File present, its contents are discarded.
write in interface DataRasterWriterraster - a data raster to be writtenformatSuffix - a String containing the format suffixfile - a File to be written to
IOException - if any parameter is null or invalid
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||