public class TLcdEarthTileFormat
extends java.lang.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(java.lang.Class aFormatClass)
Creates a new tile data format using only a Class.
|
TLcdEarthTileFormat(java.lang.String aFormatName)
Creates a new tile data format using only a name.
|
TLcdEarthTileFormat(java.lang.String aFormatName,
java.lang.Class aFormatClass)
Creates a new tile data format using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class |
getFormatClass()
Returns the Class to which data of the format may be casted.
|
java.lang.String |
getFormatName()
Returns the name of the format.
|
int |
hashCode() |
java.lang.String |
toString() |
public TLcdEarthTileFormat(java.lang.String aFormatName, java.lang.Class aFormatClass)
aFormatName
- the name of the formataFormatClass
- the Class of the formatpublic TLcdEarthTileFormat(java.lang.String aFormatName)
aFormatName
- the name of the format, not nullpublic TLcdEarthTileFormat(java.lang.Class aFormatClass)
aFormatClass
- the Class of the formatpublic java.lang.Class getFormatClass()
public java.lang.String getFormatName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object