|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectMetadataTranscoder<T>
T - The type of metadata object produced by this transcoder.public abstract class MetadataTranscoder<T>
Base class for objects providing transcoding capabilities from/to a metadata object.
The metadata object is typically the ISO 19115 Metadata,
but not necessarily.
ImageTranscoder
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from interface WarningProducer |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
protected |
MetadataTranscoder(WarningProducer owner)
Creates a new transcoder for the given source or destination. |
| Method Summary | |
|---|---|
Locale |
getLocale()
Returns the locale to use for formatting warnings. |
abstract T |
readMetadata()
Creates an ISO Metadata object from the information known to this transcoder. |
boolean |
warningOccurred(LogRecord record)
Invoked when a warning occurred. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MetadataTranscoder(WarningProducer owner)
owner - Typically the SpatialImageReader or
SpatialImageWriter object using this
transcoder, or null.| Method Detail |
|---|
public abstract T readMetadata()
throws IOException
Metadata object from the information known to this transcoder.
IOException - If an I/O operation was necessary but failed.public boolean warningOccurred(LogRecord record)
WarningProducer.LOGGER otherwise.
warningOccurred in interface WarningProducerrecord - The warning that occurred.
true if the message has been sent to at least one warning listener,
or false if it has been sent to the logging system as a fallback.public Locale getLocale()
null if none.
Note that overriding this method does not guaranteed that warnings will be produced with the new locale. The actually used locale depends on which class produced the warning message.
getLocale in interface Localizednull if not explicitly defined.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||