Object

wvlet.log.io

Resource

Related Doc: package io

Permalink

object Resource

Resource file manager.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Resource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class FileInJar(resourceURL: URL, logicalPath: String, isDirectory: Boolean) extends VirtualFile with Product with Serializable

    Permalink

    A virtual file implementation for file resources contained in a JAR file

  2. case class SystemFile(file: File, logicalPath: String) extends VirtualFile with Product with Serializable

    Permalink

    A virtual file implementation for usual files

  3. trait VirtualFile extends AnyRef

    Permalink

    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"

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def find(packageName: String, resourceFileName: String): Option[URL]

    Permalink

    Finds the java.net.URL of the resource

    Finds the java.net.URL of the resource

    packageName

    the base package name to find the resource

    resourceFileName

    the resource file name relative to the package folder

    returns

    the URL of the specified resource

  9. def find(absoluteResourcePath: String): Option[URL]

    Permalink

    Find a resource from the give absolute path

  10. def find(referenceClass: Class[_], resourceFileName: String): Option[URL]

    Permalink
  11. def findClasses[A](searchPath: Package, toSearch: Class[A], classLoader: ClassLoader): Seq[Class[A]]

    Permalink
  12. def findClasses[A](packageName: String, toSearch: Class[A], classLoader: ClassLoader = ...): Seq[Class[A]]

    Permalink
  13. def findResourceURLs(cl: ClassLoader, name: String): Seq[URL]

    Permalink

    Find resource URLs that can be found from a given class loader and its ancestors

    Find resource URLs that can be found from a given class loader and its ancestors

    cl

    class loader

    name

    resource name

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def listResources(packageName: String, resourceFilter: (String) ⇒ Boolean, classLoader: ClassLoader = ...): Seq[VirtualFile]

    Permalink

    Collect resources under the given package

  18. def listResources(packageName: String): Seq[VirtualFile]

    Permalink

    Collect resources under the given package

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def open[U](referenceClass: Class[_], resourceFileName: String)(body: (BufferedInputStream) ⇒ U): U

    Permalink

    Open a resource as a stream, then execute the code block using the stream

    Open a resource as a stream, then execute the code block using the stream

    referenceClass

    context class to specify the package containing the resource file

    resourceFileName

    file name

    body

    code block

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped