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
- Alphabetic
- By Inheritance
- FileResource
- Serializable
- Serializable
- Product
- Equals
- WriteableResource
- Resource
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FileResource(file: File, uri: String)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
def
/(name: String): FileResource
Create a child file
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andDescendants: Iterable[File]
Returns an Iterable over this file and any descending files
- implicit def asFile: File
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
children: Iterable[File]
Returns an Iterable over the immediate children of this directory or an empty Iterable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
descendants: Iterable[File]
Returns an Iterable over any descending files
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
extension: String
Returns the extension of the file
- val file: File
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
- FileResource → Resource
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lastModified: Long
Returns the last modified time of the resource
Returns the last modified time of the resource
- Definition Classes
- FileResource → Resource
- def name: String
-
def
nameDropExtension: String
Returns the name of the file without its extension
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
outputStream: FileOutputStream
Returns the output stream of the resource
Returns the output stream of the resource
- Definition Classes
- FileResource → WriteableResource
-
def
reader: FileReader
Returns the reader of the content of the resource
Returns the reader of the content of the resource
- Definition Classes
- FileResource → Resource
-
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
-
def
relativeUri(root: File): String
Returns the relative URI of this file from the given root directory
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
text: String
Returns the text content of the resource
Returns the text content of the resource
- Definition Classes
- FileResource → Resource
-
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
-
def
toFile: Some[File]
- Definition Classes
- FileResource → Resource
-
val
uri: String
Returns the URI of the resource
Returns the URI of the resource
- Definition Classes
- FileResource → Resource
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
writer: Writer
Returns the writer to the content of the resource
Returns the writer to the content of the resource
- Definition Classes
- WriteableResource
-
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