Class PathConverter.FilePath
java.lang.Object
org.apache.sis.internal.converter.ClassPair<File,Path>
org.apache.sis.internal.converter.SystemConverter<File,Path>
org.apache.sis.internal.converter.PathConverter<File,Path>
org.apache.sis.internal.converter.PathConverter.FilePath
- All Implemented Interfaces:
Serializable
,Function<File,
,Path> ObjectConverter<File,
Path>
- Enclosing class:
PathConverter<S,
T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.converter.PathConverter
PathConverter.FilePath, PathConverter.FileURI, PathConverter.FileURL, PathConverter.PathFile, PathConverter.PathURI, PathConverter.PathURL, PathConverter.URI_URL, PathConverter.URIFile, PathConverter.URIPath, PathConverter.URL_URI, PathConverter.URLFile, PathConverter.URLPath
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final PathConverter.FilePath
private static final long
Fields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInvoked byPathConverter.apply(Object)
for converting the given path to the target type of this converter.inverse()
Default to non-invertible conversion.unique()
Returns an unique instance of this converter if one exists.Methods inherited from class org.apache.sis.internal.converter.PathConverter
apply, properties
Methods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolve
Methods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
Constructor Details
-
FilePath
public FilePath()
-
-
Method Details
-
unique
Description copied from class:SystemConverter
Returns an unique instance of this converter if one exists. If a converter already exists for the same source an target classes, then this converter is returned. Otherwise this converter is returned without being cached.- Overrides:
unique
in classSystemConverter<File,
Path> - Returns:
- the unique instance, or
this
if no unique instance can be found. - See Also:
-
inverse
Description copied from class:SystemConverter
Default to non-invertible conversion. Must be overridden by subclasses that support inversions.- Specified by:
inverse
in interfaceObjectConverter<File,
Path> - Overrides:
inverse
in classSystemConverter<File,
Path> - Returns:
- a converter for converting instances of T back to instances of S.
- See Also:
-
doConvert
Description copied from class:PathConverter
Invoked byPathConverter.apply(Object)
for converting the given path to the target type of this converter.- Specified by:
doConvert
in classPathConverter<File,
Path> - Parameters:
source
- the path to convert, guaranteed to be non-null.- Returns:
- the converted path.
-