object Resources
Ordering
- Alphabetic
- By Inheritance
Inherited
- Resources
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def closeUrlConnection(connection: URLConnection): Unit
Close a URL connection.
Close a URL connection.
This works around a JDK bug where if the URL connection is to a JAR file, and the entry is a directory, an NPE is thrown.
- def isDirectory(classLoader: ClassLoader, url: URL): Boolean
- def isUrlConnectionADirectory(classLoader: ClassLoader, urlConnection: URLConnection): Boolean
Tries to work out whether the given URL connection is a directory or not.
Tries to work out whether the given URL connection is a directory or not.
Depends on the URL connection type whether it's accurate. If it's unable to determine whether it's a directory, this returns false.
Deprecated Value Members
- def isUrlConnectionADirectory(urlConnection: URLConnection): Boolean
- Annotations
- @deprecated
- Deprecated
(Since version 2.9) Use isUrlConnectionADirectory(classLoader,urlConnection) instead.
Provide resources helpers