Class PathConverter.URLPath
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<S,T>
org.apache.sis.internal.converter.PathConverter<URL,Path>
org.apache.sis.internal.converter.PathConverter.URLPath
- All Implemented Interfaces:
Serializable,Function<URL,,Path> ObjectConverter<URL,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.URLPathprivate static final longFields 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, propertiesMethods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolveMethods 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
-
URLPath
public URLPath()
-
-
Method Details
-
unique
Description copied from class:SystemConverterReturns 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:
uniquein classSystemConverter<URL,Path> - Returns:
- the unique instance, or
thisif no unique instance can be found. - See Also:
-
inverse
Description copied from class:SystemConverterDefault to non-invertible conversion. Must be overridden by subclasses that support inversions.- Specified by:
inversein interfaceObjectConverter<URL,Path> - Overrides:
inversein classSystemConverter<URL,Path> - Returns:
- a converter for converting instances of T back to instances of S.
- See Also:
-
doConvert
Description copied from class:PathConverterInvoked byPathConverter.apply(Object)for converting the given path to the target type of this converter.- Specified by:
doConvertin classPathConverter<URL,Path> - Parameters:
source- the path to convert, guaranteed to be non-null.- Returns:
- the converted path.
- Throws:
URISyntaxException
-