|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectUtils
public class Utils
Sparse utilities for the various mosaic classes. I use them to extract complex code from other places.
| Nested Class Summary | |
|---|---|
static class |
Utils.Prop
|
| Field Summary | |
|---|---|
static boolean |
DEFAULT_COLOR_EXPANSION_BEHAVIOR
|
static boolean |
DEFAULT_CONFIGURATION_CACHING
|
static boolean |
DEFAULT_FOOTPRINT_MANAGEMENT
|
static String |
DEFAULT_INDEX_NAME
|
static String |
DEFAULT_LOCATION_ATTRIBUTE
Default location attribute name. |
static boolean |
DEFAULT_PATH_BEHAVIOR
Default path behavior with respect to absolute paths. |
static int |
DEFAULT_PRIORITY
Default priority for the underlying Thread. |
static boolean |
DEFAULT_RECURSION_BEHAVIOR
|
static String |
DEFAULT_WILCARD
Default wildcard for creating mosaics. |
static String |
INDEXER_PROPERTIES
|
static double[][] |
RGB_TO_GRAY_MATRIX
RGB to GRAY coefficients (for Luminance computation) |
static DataStoreFactorySpi |
SHAPE_SPI
|
| Method Summary | |
|---|---|
static String |
checkDirectory(String testingDirectory,
boolean writable)
|
static boolean |
checkFileReadable(File file)
Checks that a File is a real file, exists and is readable. |
static Map<String,Serializable> |
createDataStoreParamsFromPropertiesFile(Properties properties,
DataStoreFactorySpi spi)
|
static Map<String,Serializable> |
createDataStoreParamsFromPropertiesFile(URL datastoreProperties)
|
static IOFileFilter |
excludeFilters(IOFileFilter inputFilter,
IOFileFilter... filters)
|
static String |
getFileInfo(File file)
Creates a human readable message that describe the provided File object in terms of its properties. |
static String |
getMessageFromException(Exception exception)
|
static Properties |
loadPropertiesFromURL(URL propsURL)
|
static RenderedImage |
loadSampleImage(File sampleImageFile)
Load a sample image from which we can take the sample model and color model to be used to fill holes in responses. |
static ReferencedEnvelope |
parseEnvelope(String bboxString)
Parses a bbox in the form of MIX,MINY MAXX,MAXY |
static void |
storeSampleImage(File sampleImageFile,
SampleModel defaultSM,
ColorModel defaultCM)
Store a sample image from which we can derive the default SM and CM |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INDEXER_PROPERTIES
public static final double[][] RGB_TO_GRAY_MATRIX
public static final String DEFAULT_WILCARD
public static final boolean DEFAULT_PATH_BEHAVIOR
public static final int DEFAULT_PRIORITY
Thread.
public static final String DEFAULT_LOCATION_ATTRIBUTE
public static final String DEFAULT_INDEX_NAME
public static final DataStoreFactorySpi SHAPE_SPI
public static final boolean DEFAULT_RECURSION_BEHAVIOR
public static final boolean DEFAULT_FOOTPRINT_MANAGEMENT
public static final boolean DEFAULT_CONFIGURATION_CACHING
public static final boolean DEFAULT_COLOR_EXPANSION_BEHAVIOR
| Method Detail |
|---|
public static String getMessageFromException(Exception exception)
public static ReferencedEnvelope parseEnvelope(String bboxString)
bboxString - the string to parse the bbox from
ReferencedEnvelope with the parse bbox or nullpublic static Properties loadPropertiesFromURL(URL propsURL)
public static IOFileFilter excludeFilters(IOFileFilter inputFilter,
IOFileFilter... filters)
public static boolean checkFileReadable(File file)
File is a real file, exists and is readable.
file - the File instance to check. Must not be null.
true in case the file is a real file, exists and is
readable; false otherwise.public static String getFileInfo(File file)
File object in terms of its properties.
Useful for creating meaningful log messages.
file - the File object to create a descriptive message for
String containing a descriptive message about the provided File.
public static String checkDirectory(String testingDirectory,
boolean writable)
throws IllegalArgumentException
testingDirectory -
IllegalArgumentException
IOException
public static Map<String,Serializable> createDataStoreParamsFromPropertiesFile(URL datastoreProperties)
throws IOException
datastoreProperties -
IOException
public static void storeSampleImage(File sampleImageFile,
SampleModel defaultSM,
ColorModel defaultCM)
throws IOException
sampleImageFile - where we should store the imagedefaultSM - the SampleModel for the sample image.defaultCM - the ColorModel for the sample image.
IOException - in case something bad occurs during writing.public static RenderedImage loadSampleImage(File sampleImageFile)
sampleImageFile - the path to sample image.
public static Map<String,Serializable> createDataStoreParamsFromPropertiesFile(Properties properties,
DataStoreFactorySpi spi)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||