org.fusesource.scalate.util

FileResource

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

Linear Supertypes
Serializable, Serializable, Product, Equals, WriteableResource, Resource, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FileResource
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WriteableResource
  7. Resource
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def / (name: String): FileResource

    Create a child file

  5. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  6. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  7. def andDescendants : Iterable[File]

    Returns an Iterable over this file and any descending files

  8. implicit def asFile : File

    Attributes
    implicit
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def canEqual (arg0: Any): Boolean

    Definition Classes
    FileResource → Equals
  11. def children : Iterable[File]

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

  12. def clone (): AnyRef

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

    Returns an Iterable over any descending files

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    FileResource → Equals → AnyRef → Any
  16. def extension : String

    Returns the extension of the file

  17. val file : File

  18. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    FileResource → AnyRef → Any
  21. 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
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def lastModified : Long

    Returns the last modified time of the resource

    Returns the last modified time of the resource

    Definition Classes
    FileResourceResource
  24. def name : String

  25. def nameDropExtension : String

    Returns the name of the file without its extension

  26. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. def outputStream : FileOutputStream

    Returns the output stream of the resource

    Returns the output stream of the resource

    Definition Classes
    FileResourceWriteableResource
  30. def productArity : Int

    Definition Classes
    FileResource → Product
  31. def productElement (arg0: Int): Any

    Definition Classes
    FileResource → Product
  32. def productIterator : Iterator[Any]

    Definition Classes
    Product
  33. def productPrefix : String

    Definition Classes
    FileResource → Product
  34. def reader : FileReader

    Returns the reader of the content of the resource

    Returns the reader of the content of the resource

    Definition Classes
    FileResourceResource
  35. 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

  36. def relativeUri (root: File): String

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

  37. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  38. def text : String

    Returns the text content of the resource

    Returns the text content of the resource

    Definition Classes
    FileResourceResource
  39. 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
  40. def toFile : Some[File]

    Definition Classes
    FileResourceResource
  41. def toString (): String

    Definition Classes
    FileResource → AnyRef → Any
  42. val uri : String

    Returns the URI of the resource

    Returns the URI of the resource

    Definition Classes
    FileResourceResource
  43. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. def writer : Writer

    Returns the writer to the content of the resource

    Returns the writer to the content of the resource

    Definition Classes
    WriteableResource

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WriteableResource

Inherited from Resource

Inherited from AnyRef

Inherited from Any