org.geotools.factory
Class Hints.FileKey
Object
RenderingHints.Key
Hints.Key
Hints.FileKey
- Enclosing class:
- Hints
public static final class Hints.FileKey
- extends Hints.Key
Key for hints to be specified as a File
.
The file may also be specified as a String
object.
- Since:
- 2.4
- Author:
- Jody Garnett, Martin Desruisseaux
- Module:
Constructor Summary |
Hints.FileKey(boolean writable)
Creates a new key for File value. |
Method Summary |
boolean |
isCompatibleValue(Object value)
Returns true if the specified object is a valid file or directory. |
Hints.FileKey
public Hints.FileKey(boolean writable)
- Creates a new key for
File
value.
- Parameters:
writable
- true
if write operations need to be allowed.
isCompatibleValue
public boolean isCompatibleValue(Object value)
- Returns
true
if the specified object is a valid file or directory.
- Overrides:
isCompatibleValue
in class Hints.Key
- Parameters:
value
- The object to test for validity.
- Returns:
true
if the value is valid; false
otherwise.- See Also:
Hints.ClassKey.isCompatibleValue(java.lang.Object)
,
isCompatibleValue(java.lang.Object)
,
Hints.IntegerKey.isCompatibleValue(java.lang.Object)
,
Hints.OptionKey.isCompatibleValue(java.lang.Object)
Copyright © 1996-2009 Geotools. All Rights Reserved.