- java.lang.Object
-
- org.arakhne.afc.vmutil.file.HandlerFactory
-
- All Implemented Interfaces:
URLStreamHandlerFactory
@Deprecated(forRemoval=true, since="17.0") public class HandlerFactory extends Object implements URLStreamHandlerFactory
Deprecated, for removal: This API element is subject to removal in a future version.since 17.0, seeHandlerProvider
.This class defines a factory forURL
stream "resource" and "file" protocol handlers.It is used by the
URL
class to create aURLStreamHandler
for a "resource" protocol.To use this factory, invoke the following code only ONCE time:
URL.setURLStreamHandlerFactory(new FileResourceURLStreamHandlerFactory());
.- Since:
- 6.0
- Version:
- 17.0 2020-01-04 14:41:35
- Author:
- Stéphane GALLAND
- See Also:
URLStreamHandlerFactory
,URL.setURLStreamHandlerFactory(URLStreamHandlerFactory)
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- vmutils
-
-
Constructor Summary
Constructors Constructor Description HandlerFactory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URLStreamHandler
createURLStreamHandler(String protocol)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
createURLStreamHandler
public URLStreamHandler createURLStreamHandler(String protocol)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createURLStreamHandler
in interfaceURLStreamHandlerFactory
-
-