|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGridCoverageStore
public abstract class GridCoverageStore
Base class of GridCoverageReader and GridCoverageWriter. This base class
provides common functionalities to set the locale used
for error messages, abort a reading or writing process, and
reset or dispose the reader or writer.
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary | |
|---|---|
protected boolean |
abortRequested
true if a request to abort the current read or write operation has been made. |
| Constructor Summary | |
|---|---|
protected |
GridCoverageStore()
Creates a new instance. |
| Method Summary | |
|---|---|
void |
abort()
Cancels the read or write operation which is currently under progress in an other thread. |
void |
dispose()
Allows any resources held by this reader or writer to be released. |
Locale |
getLocale()
Returns the locale to use for formatting warnings and error messages, or null for the default. |
Level |
getLogLevel()
Returns the logging level to use for read and write operations. |
void |
reset()
Restores this reader or writer to its initial state. |
void |
setLocale(Locale locale)
Sets the current locale of this coverage reader or writer to the given value. |
void |
setLogLevel(Level level)
Sets the logging level to use for read and write operations. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile boolean abortRequested
true if a request to abort the current read or write operation has been made.
Subclasses should set this field to false at the beginning of each read or write
operation, and pool the value regularly during the operation.
abort()| Constructor Detail |
|---|
protected GridCoverageStore()
| Method Detail |
|---|
public Level getLogLevel()
PerformanceLevel constants,
determined according the duration of the operation.
getLogLevel in interface LogProducerpublic void setLogLevel(Level level)
null
value restores the default level documented in the getLogLevel() method.
setLogLevel in interface LogProducerlevel - The new logging level, or null for the default.public Locale getLocale()
null for the default.
getLocale in interface Localizednull.ImageReader.getLocale(),
ImageWriter.getLocale()public void setLocale(Locale locale)
null removes any previous setting, and indicates that the reader or writer should
localize as it sees fit.
locale - The new locale to use, or null for a default one.ImageReader.setLocale(Locale),
ImageWriter.setLocale(Locale)public void abort()
CancellationException to be thrown in the reading
or writing thread (not this thread), unless the operation had the time to complete.
Note for implementors
Subclasses should set the abortRequested field to false at the beginning
of each read or write operation, and poll the value regularly during the operation.
abortRequested,
ImageReader.abort(),
ImageWriter.abort()
public void reset()
throws CoverageStoreException
CoverageStoreException - if an error occurs while restoring to the initial state.ImageReader.reset(),
ImageWriter.reset()
public void dispose()
throws CoverageStoreException
Subclass implementations shall ensure that all resources, especially JCBC connections, are released.
CoverageStoreException - if an error occurs while disposing resources.ImageReader.dispose(),
ImageWriter.dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||