public class TLcdEarthTileFormat extends Object
byte[]
. The name is used to further specify the data content,
e.g. "JPEG". At least one of the parameters must not be null
.
The class should not be null
if the format describes data that is available in
a java object. It can however be null
if the format describes some data that exists
on an external resource.
Some examples:
Described data | Class | Name |
---|---|---|
an ALcdEarthTile with a BufferedImage as data |
BufferedImage.class |
null |
an ALcdEarthTile with a byte[] , that contains a jpeg encoded image, as data |
byte[].class |
jpeg |
an ILcdEarthTileSetCoverage with jpeg encoded data on disk |
null |
jpeg |
ALcdEarthTile.getDataFormat()
,
ILcdEarthTileSetCoverage.getNativeFormat()
Constructor and Description |
---|
TLcdEarthTileFormat(Class aFormatClass)
Creates a new tile data format using only a Class.
|
TLcdEarthTileFormat(String aFormatName)
Creates a new tile data format using only a name.
|
TLcdEarthTileFormat(String aFormatName,
Class aFormatClass)
Creates a new tile data format using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class |
getFormatClass()
Returns the Class to which data of the format may be casted.
|
String |
getFormatName()
Returns the name of the format.
|
int |
hashCode() |
String |
toString() |
public TLcdEarthTileFormat(String aFormatName, Class aFormatClass)
aFormatName
- the name of the formataFormatClass
- the Class of the formatpublic TLcdEarthTileFormat(String aFormatName)
aFormatName
- the name of the format, not nullpublic TLcdEarthTileFormat(Class aFormatClass)
aFormatClass
- the Class of the format