|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.processor.ProcessorUtils
public class ProcessorUtils
This class contains an assortment of convenience methods that may be useful when developing scientific processors within the BEAM framework.
| Constructor Summary | |
|---|---|
ProcessorUtils()
|
|
| Method Summary | |
|---|---|
static ProductRef |
createProductRef(String filePath,
String fileFormat)
Creates a valid ProductRef from the given file path and file format string |
static ProductWriter |
createProductWriter(ProductRef prodRef)
Creates a product writer based on the information stored in the product reference passed in |
static Term |
createTerm(String expression,
Product product)
Creates a Term from the expression string passed in and validates that the product
supplied can interpret the expression. |
static void |
removeLoggingHandler()
Flushes all logging handlers attached to the system logger and removes them. |
static void |
setProcessorLoggingHandler(String defaultPrefix,
Request request,
Formatter formatter)
Sets a default set of logging handlers to the systemlogger. |
static void |
setProcessorLoggingHandler(String defaultPrefix,
Request request,
String appName,
String appVersion,
String copyrightInfo)
Sets a default set of logging handlers to the systemlogger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessorUtils()
| Method Detail |
|---|
public static Term createTerm(String expression,
Product product)
throws ProcessorException
Term from the expression string passed in and validates that the product
supplied can interpret the expression.
expression - the expression stringproduct - the product to interprete the expression
ProcessorException - on any failure
public static ProductWriter createProductWriter(ProductRef prodRef)
throws ProcessorException
prodRef - the ProductRef containing the information for the output product
ProcessorException
public static void setProcessorLoggingHandler(String defaultPrefix,
Request request,
String appName,
String appVersion,
String copyrightInfo)
defaultPrefix - the default log file prefixrequest - the processing requestappName - the application nameappVersion - the application version stringcopyrightInfo - the copyright information
public static void setProcessorLoggingHandler(String defaultPrefix,
Request request,
Formatter formatter)
defaultPrefix - the default log file prefixrequest - the processing requestformatter - a formatter to be usedpublic static void removeLoggingHandler()
public static ProductRef createProductRef(String filePath,
String fileFormat)
ProductRef from the given file path and file format string
filePath - fileFormat -
null if no filePath is given or filePath is empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||