VirtualFile

abstract trait VirtualFile

VirtualFile is a common interface to handle system files and file resources in JAR.

VirtualFile is a common interface to handle system files and file resources in JAR.

System file resources have an URL prefixed with "file:". e.g., "file:/C:/Program Files/Software/classes/org/xerial/util/FileResource.java" JAR file contents have an URL prefixed with "jar:file: e.g., "jar:file:/C:/Program Files/Software/something.jar!/org/xerial/util/FileResource.java"

Authors

leo

class Object
trait Matchable
class Any

Value members

Abstract methods

def isDirectory: Boolean

is directory?

is directory?

Returns

true when the file is a directory, otherwise false

def logicalPath: String

Gets the logical path of the file. For example, if this VirtualFile' URL is "file:/somewhere/org/xerial/util/FileResource.java", its logical name is org/xerial/util/FileResource.java, beginning from the root package.

Gets the logical path of the file. For example, if this VirtualFile' URL is "file:/somewhere/org/xerial/util/FileResource.java", its logical name is org/xerial/util/FileResource.java, beginning from the root package.

def url: URL

Gets the URL of this file

Gets the URL of this file