Class

org.fusesource.scalate.util

FileResource

Related Doc: package util

Permalink

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)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    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)

    Permalink
    Implicit information
    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

    Permalink

    Create a child file

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def andDescendants: Iterable[File]

    Permalink

    Returns an Iterable over this file and any descending files

  8. implicit def asFile: File

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def children: Iterable[File]

    Permalink

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

  11. def clone(): AnyRef

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

    Permalink

    Returns an Iterable over any descending files

  13. def ensuring(cond: (FileResource) ⇒ Boolean, msg: ⇒ Any): FileResource

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Implicit information
    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

    Permalink
    Definition Classes
    AnyRef
  18. def extension: String

    Permalink

    Returns the extension of the file

  19. val file: File

    Permalink
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def inputStream: FileInputStream

    Permalink

    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

    Permalink
    Definition Classes
    Any
  25. def lastModified: Long

    Permalink

    Returns the last modified time of the resource

    Returns the last modified time of the resource

    Definition Classes
    FileResourceResource
  26. def name: String

    Permalink
  27. def nameDropExtension: String

    Permalink

    Returns the name of the file without its extension

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

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

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def outputStream: FileOutputStream

    Permalink

    Returns the output stream of the resource

    Returns the output stream of the resource

    Definition Classes
    FileResourceWriteableResource
  32. def reader: FileReader

    Permalink

    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]

    Permalink

    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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def text: String

    Permalink

    Returns the text content of the resource

    Returns the text content of the resource

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

    Permalink

    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]

    Permalink
    Definition Classes
    FileResourceResource
  39. val uri: String

    Permalink

    Returns the URI of the resource

    Returns the URI of the resource

    Definition Classes
    FileResourceResource
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def writer: Writer

    Permalink

    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)

    Permalink
    Implicit information
    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