Packages

o

wvlet.log.io

Resource

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

    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

    A virtual file implementation for usual files

  3. trait VirtualFile extends AnyRef

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def find(packageName: String, resourceFileName: String): Option[URL]

    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]

    Find a resource from the give absolute path

  10. def find(referenceClass: Class[_], resourceFileName: String): Option[URL]
  11. def findClasses[A](searchPath: Package, toSearch: Class[A], classLoader: ClassLoader): Seq[Class[A]]
  12. def findClasses[A](packageName: String, toSearch: Class[A], classLoader: ClassLoader = ...): Seq[Class[A]]
  13. def findResourceURLs(cl: ClassLoader, name: String): Seq[URL]

    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[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def listResources(packageName: String, resourceFilter: (String) ⇒ Boolean, classLoader: ClassLoader = ...): Seq[VirtualFile]

    Collect resources under the given package

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

    Collect resources under the given package

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def open[U](referenceClass: Class[_], resourceFileName: String)(body: (BufferedInputStream) ⇒ U): U

    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
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped