Trait

poly.io

File

Related Doc: package io

Permalink

trait File[S <: FileSystem] extends ReadOnlyFile[_31.type] with Path[_31.type]

Represents a regular file under a specific file system.

Self Type
S.File
Since

0.2.0

Linear Supertypes
Path[S], ReadOnlyFile[S], ReadOnlyPath[S], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. File
  2. Path
  3. ReadOnlyFile
  4. ReadOnlyPath
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def delete(): Unit

    Permalink

    Removes this file or directory.

    Removes this file or directory.

    Definition Classes
    Path
  2. abstract val fileSystem: _31.type

    Permalink

    Returns a reference to the file system in which this file resides.

    Returns a reference to the file system in which this file resides.

    Definition Classes
    ReadOnlyPath
  3. abstract def inputStream: InputStream

    Permalink

    Opens an input stream to read raw bytes from this file.

    Opens an input stream to read raw bytes from this file.

    Definition Classes
    ReadOnlyFile
  4. abstract def isExecutable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  5. abstract def isHidden: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  6. abstract def isReadable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  7. abstract def isWriteable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  8. abstract def outputStream: OutputStream

    Permalink

    Opens an output stream to write raw bytes to this file.

  9. abstract def path: Array[String]

    Permalink

    Returns an array of the components of this path.

    Returns an array of the components of this path.

    Definition Classes
    ReadOnlyPath
    Example:
    1. Directory("/home/admin/projects") = ("home", "admin", "projects")
  10. abstract def permissions: Set[PosixFilePermission]

    Permalink
    Definition Classes
    ReadOnlyPath
  11. abstract def rename(newName: String): Unit

    Permalink
    Definition Classes
    Path
  12. abstract def size: Long

    Permalink

    Returns the number of bytes in this file.

    Returns the number of bytes in this file.

    Definition Classes
    ReadOnlyFile

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /(rl: RelativeSymLink): FileSystem._31.type.SymLink

    Permalink
    Definition Classes
    ReadOnlyPath
  4. def /(rf: RelativeFile): FileSystem._31.type.File

    Permalink
    Definition Classes
    ReadOnlyPath
  5. def /(rd: RelativeDirectory): FileSystem._31.type.Directory

    Permalink
    Definition Classes
    ReadOnlyPath
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def baseName: String

    Permalink

    Returns the basename of a file name (without the extension part).

    Returns the basename of a file name (without the extension part).

    Definition Classes
    ReadOnlyPath
  9. def bytes: Iterable[Byte]

    Permalink

    Returns a lazy iterable sequence of raw bytes in this file.

    Returns a lazy iterable sequence of raw bytes in this file.

    Definition Classes
    ReadOnlyFile
  10. def chars(implicit enc: Codec): Iterable[Char]

    Permalink

    Returns a lazy iterable sequence of characters in this file given a character encoding.

    Returns a lazy iterable sequence of characters in this file given a character encoding.

    Definition Classes
    ReadOnlyFile
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copyTo[DS <: FileSystem](destination: ReadOnlyPath.copyTo.DS.Directory)(implicit ft: Copying[_31.type, DS]): Unit

    Permalink
    Definition Classes
    ReadOnlyPath
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  15. def extension: String

    Permalink

    Returns the extension of this file.

    Returns the extension of this file. The extension is lowercased.

    returns

    If there's no extension, the empty string "" is returned.

    Definition Classes
    ReadOnlyPath
  16. def finalize(): Unit

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

    Permalink

    Returns the full name (including the absolute path) of this file.

    Returns the full name (including the absolute path) of this file.

    Definition Classes
    ReadOnlyPath
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  20. final def isDirectory: Boolean

    Permalink
    Definition Classes
    ReadOnlyFileReadOnlyPath
  21. final def isFile: Boolean

    Permalink
    Definition Classes
    ReadOnlyFileReadOnlyPath
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def isSymLink: Boolean

    Permalink
    Definition Classes
    ReadOnlyFileReadOnlyPath
  24. def lines(implicit enc: Codec): Iterable[String]

    Permalink

    Returns a lazy iterable sequence of lines in this file given a character encoding.

    Returns a lazy iterable sequence of lines in this file given a character encoding.

    Definition Classes
    ReadOnlyFile
  25. def moveTo[DS <: FileSystem](destination: Path.moveTo.DS.Directory)(implicit ft: Copying[_31.type, DS]): Unit

    Permalink
    Definition Classes
    Path
  26. def name: String

    Permalink

    Returns the name (without the path section) of this file or directory.

    Returns the name (without the path section) of this file or directory.

    Definition Classes
    ReadOnlyPath
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def parent: FileSystem._31.type.Directory

    Permalink

    Returns the parent directory of this path.

    Returns the parent directory of this path.

    Definition Classes
    ReadOnlyPath
  31. def reader(implicit enc: Codec): java.io.Reader

    Permalink

    Opens a reader to read characters from this file given a character encoding.

    Opens a reader to read characters from this file given a character encoding.

    Definition Classes
    ReadOnlyFile
  32. def relativize(that: FileSystem._31.type.Path): RelativePath

    Permalink
    Definition Classes
    ReadOnlyPath
  33. def relativize(that: FileSystem._31.type.File): RelativeFile

    Permalink
    Definition Classes
    ReadOnlyPath
  34. def relativize(that: FileSystem._31.type.Directory): RelativeDirectory

    Permalink
    Definition Classes
    ReadOnlyPath
  35. def resolve(rl: RelativeSymLink): FileSystem._31.type.SymLink

    Permalink
    Definition Classes
    ReadOnlyPath
  36. def resolve(rf: RelativeFile): FileSystem._31.type.File

    Permalink
    Definition Classes
    ReadOnlyPath
  37. def resolve(rd: RelativeDirectory): FileSystem._31.type.Directory

    Permalink
    Definition Classes
    ReadOnlyPath
  38. def slurp(implicit enc: Codec): String

    Permalink

    Reads all content of this file to a string.

    Reads all content of this file to a string.

    Definition Classes
    ReadOnlyFile
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def writer(implicit enc: Codec): java.io.Writer

    Permalink

    Opens a writer to write characters to this file given a character encoding.

Inherited from Path[S]

Inherited from ReadOnlyFile[S]

Inherited from ReadOnlyPath[S]

Inherited from AnyRef

Inherited from Any

Ungrouped