|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractProcessor
public abstract class AbstractProcessor
Base class for coverage processor implementations.
Field Summary | |
---|---|
static Logger |
LOGGER
The logger for coverage processing operations. |
static Level |
OPERATION
The logging level for reporting coverage operations. |
Constructor Summary | |
---|---|
AbstractProcessor()
Constructs a coverage processor. |
Method Summary | |
---|---|
abstract Coverage |
doOperation(ParameterValueGroup parameters)
Applies an operation. |
static AbstractProcessor |
getInstance()
Returns a default processor instance. |
Locale |
getLocale()
The locale for logging message or reporting errors. |
abstract Operation |
getOperation(String name)
Returns the operation for the specified name. |
abstract Collection<Operation> |
getOperations()
Retrieves grid processing operations information. |
void |
listOperations(Writer out)
Lists a summary of all operations to the specified stream. |
static void |
main(String[] args)
Dumps to the standard output stream a list of operations for the default processor. |
void |
printOperations(Writer out,
String[] names)
Prints a description of operations to the specified stream. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Logger LOGGER
public static final Level OPERATION
Level.INFO
.
Constructor Detail |
---|
public AbstractProcessor()
Method Detail |
---|
public static AbstractProcessor getInstance()
Note: this is a temporary method, until we have GeoAPI interface for coverage processor and a factory finder for their implementations.
public abstract Collection<Operation> getOperations()
public abstract Operation getOperation(String name) throws OperationNotFoundException
name
- Name of the operation.
OperationNotFoundException
- if there is no operation for the specified name.public abstract Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException
parameters
- Parameters required for the operation.
OperationNotFoundException
- if there is no operation for the parameter group name.public Locale getLocale()
public void listOperations(Writer out) throws IOException
out
- The destination stream.
IOException
- if an error occured will writing to the stream.public void printOperations(Writer out, String[] names) throws OperationNotFoundException, IOException
names
array
is non-null, then only the specified operations are printed. Otherwise, all operations
are printed. The description details include operation names and lists of parameters.
out
- The destination stream.names
- The operation to print, or an empty array for none, or null
for all.
IOException
- if an error occured will writing to the stream.
OperationNotFoundException
- if an operation named in names
was not found.public static void main(String[] args)
Note for Windows users: If the output contains strange symbols, try to supply an "java org.geotools.coverage.processing.DefaultProcessor Interpolate
-encoding
" argument. Example:
The codepage number (850 in the previous example) can be fetch from the DOS command line by entering the "java org.geotools.coverage.processing.DefaultProcessor -encoding Cp850
chcp
" command with no arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |