ResourcePath

replpp.shaded.os.ResourcePath
See theResourcePath companion object

Represents path to a resource on the java classpath.

Classloaders are tricky: http://stackoverflow.com/questions/12292926

Attributes

Companion
object
Graph
Supertypes
trait ReadablePath
trait BasePathImpl
trait BasePath
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

Value members

Concrete methods

def getInputStream: InputStream
def lastOpt: Option[String]

Relativizes this path with the given target path, finding a relative path p such that base/p == this.

Relativizes this path with the given target path, finding a relative path p such that base/p == this.

Note that you can only relativize paths of the same type, e.g. Path & Path or RelPath & RelPath. In the case of RelPath, this can throw a PathError.NoRelativePath if there is no relative path that satisfies the above requirement in the general case.

Attributes

def startsWith(target: ResourcePath): Boolean

This path starts with the target path, including if it's identical

This path starts with the target path, including if it's identical

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

override def /(chunk: PathChunk): ThisType

Combines this path with the given relative path, returning a path of the same type as this one (e.g. Path returns Path, RelPath returns RelPath

Combines this path with the given relative path, returning a path of the same type as this one (e.g. Path returns Path, RelPath returns RelPath

Attributes

Definition Classes
Inherited from:
SegmentedPath
override def baseName: String

Gives you the base name of this path, ie without the extension

Gives you the base name of this path, ie without the extension

Attributes

Definition Classes
Inherited from:
BasePathImpl
def endsWith(target: RelPath): Boolean

This path ends with the target path, including if it's identical

This path ends with the target path, including if it's identical

Attributes

Inherited from:
SegmentedPath
def ext: String

Gives you the file extension of this path, or the empty string if there is no extension

Gives you the file extension of this path, or the empty string if there is no extension

Attributes

Inherited from:
BasePathImpl
def last: String

The last segment in this path. Very commonly used, e.g. it represents the name of the file/folder in filesystem paths

The last segment in this path. Very commonly used, e.g. it represents the name of the file/folder in filesystem paths

Attributes

Inherited from:
BasePathImpl

Relativizes this path with the given target path, finding a sub path p such that base/p == this.

Relativizes this path with the given target path, finding a sub path p such that base/p == this.

Attributes

Inherited from:
BasePath

Concrete fields

val segments: IndexedSeq[String]

The individual path segments of this path.

The individual path segments of this path.

Attributes