case class FileResource(file: File, uri: String) extends WriteableResource with Product with Serializable

Can act as a RichFile type interface too, adding a number of extra helper methods to make Files more rich

Source
Resource.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileResource
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WriteableResource
  7. Resource
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileResource(file: File, uri: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from FileResource to any2stringadd[FileResource] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FileResource, B)
    Implicit
    This member is added by an implicit conversion from FileResource to ArrowAssoc[FileResource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def /(name: String): FileResource

    Create a child file

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def andDescendants: Iterable[File]

    Returns an Iterable over this file and any descending files

  8. implicit def asFile: File
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def children: Iterable[File]

    Returns an Iterable over the immediate children of this directory or an empty Iterable

  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  12. def descendants: Iterable[File]

    Returns an Iterable over any descending files

  13. def ensuring(cond: (FileResource) ⇒ Boolean, msg: ⇒ Any): FileResource
    Implicit
    This member is added by an implicit conversion from FileResource to Ensuring[FileResource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (FileResource) ⇒ Boolean): FileResource
    Implicit
    This member is added by an implicit conversion from FileResource to Ensuring[FileResource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): FileResource
    Implicit
    This member is added by an implicit conversion from FileResource to Ensuring[FileResource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): FileResource
    Implicit
    This member is added by an implicit conversion from FileResource to Ensuring[FileResource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def extension: String

    Returns the extension of the file

  19. val file: File
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from FileResource to StringFormat[FileResource] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def inputStream: FileInputStream

    Returns the input stream of the content of the resource

    Returns the input stream of the content of the resource

    Definition Classes
    FileResourceResource
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def lastModified: Long

    Returns the last modified time of the resource

    Returns the last modified time of the resource

    Definition Classes
    FileResourceResource
  26. def name: String
  27. def nameDropExtension: String

    Returns the name of the file without its extension

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def outputStream: FileOutputStream

    Returns the output stream of the resource

    Returns the output stream of the resource

    Definition Classes
    FileResourceWriteableResource
  32. def reader: FileReader

    Returns the reader of the content of the resource

    Returns the reader of the content of the resource

    Definition Classes
    FileResourceResource
  33. def recursiveFind(f: (File) ⇒ Boolean): Option[File]

    Recursively finds the first file in this directory that matches the given predicate or matches against this file for non-directories

  34. def relativeUri(root: File): String

    Returns the relative URI of this file from the given root directory

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def text: String

    Returns the text content of the resource

    Returns the text content of the resource

    Definition Classes
    FileResourceResource
  37. def text_=(value: String): Unit

    Writes text to the resource replacing its previous content

    Writes text to the resource replacing its previous content

    Definition Classes
    WriteableResource
  38. def toFile: Some[File]
    Definition Classes
    FileResourceResource
  39. val uri: String

    Returns the URI of the resource

    Returns the URI of the resource

    Definition Classes
    FileResourceResource
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  43. def writer: Writer

    Returns the writer to the content of the resource

    Returns the writer to the content of the resource

    Definition Classes
    WriteableResource
  44. def [B](y: B): (FileResource, B)
    Implicit
    This member is added by an implicit conversion from FileResource to ArrowAssoc[FileResource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WriteableResource

Inherited from Resource

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FileResource to any2stringadd[FileResource]

Inherited by implicit conversion StringFormat from FileResource to StringFormat[FileResource]

Inherited by implicit conversion Ensuring from FileResource to Ensuring[FileResource]

Inherited by implicit conversion ArrowAssoc from FileResource to ArrowAssoc[FileResource]

Ungrouped