Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
def
createURLStreamHandler
(protocol: String): URLStreamHandler
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
install
: Unit
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
val
supported
: List[String]
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from URLStreamHandlerFactory
Inherited from AnyRef
Inherited from Any
Adds support to for the filesystem URL protocols.
This handler factory can be used as a replacement for the default handler factory by calling PathURLStreamHandlerFactory.install. This will attempt to call URL.setURLStreamHandlerFactory using the PathURLStreamHandlerFactory as the parameter
This does not always work however because the URL.setURLStreamHandlerFactory method can only be called once per JVM. For example Tomcat calls that method on startup and therefore it cannot called when using tomcat.
A second way to be able to create URLs that can open connections to custom Path implementations is to create the URLs using:
new URL(null,"protocol://path",new PathURLStreamHandler())
The final and perhaps best way (if possible) is to start the JVM with the parameter -Djava.protocol.handler.pkgs=scalax.file This will instruct the JVM to look for protocol handlers provided by scalaio