Trait/Object

org.specs2.io

FilePathReader

Related Docs: object FilePathReader | package io

Permalink

trait FilePathReader extends AnyRef

Methods to read files on the FileSystem

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FilePathReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def doesNotExist(directoryPath: DirectoryPath): Operation[Boolean]

    Permalink

    returns

    true if the directory doesn't exist

  7. def doesNotExist(filePath: FilePath): Operation[Boolean]

    Permalink

    returns

    true if the file doesn't exist

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def exists(directoryPath: DirectoryPath): Operation[Boolean]

    Permalink

    returns

    true if the directory exists

  11. def exists(filePath: FilePath): Operation[Boolean]

    Permalink

    returns

    true if the file exists

  12. def filePaths(dir: DirectoryPath, glob: String, verbose: Boolean): Operation[List[FilePath]]

    Permalink

    returns

    the list of file paths accessible from dir

  13. def filterWithPattern(pattern: String): (FilePath) ⇒ Boolean

    Permalink

    filter files according to a regex pattern

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def globToPattern(glob: String): String

    Permalink

    returns

    the regular expression equivalent to a glob pattern (see the specs for Fragments)

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def listDirectDirectoryPaths(directory: DirectoryPath): Operation[IndexedSeq[DirectoryPath]]

    Permalink

    returns

    the files directly accessible from a directory

  19. def listDirectFilePaths(directory: DirectoryPath): Operation[IndexedSeq[FilePath]]

    Permalink

    returns

    the files directly accessible from a directory

  20. def listFilePaths(directory: DirectoryPath): Operation[List[FilePath]]

    Permalink

    returns

    the files accessible recursively from a directory

  21. def md5(filePath: FilePath): Operation[String]

    Permalink

    returns

    the MD5 hash of a file

  22. def mustBeADirectory(file: File): Operation[Unit]

    Permalink

    succeeds if the file is a directory

  23. def mustExist(file: File): Operation[Unit]

    Permalink

    succeeds if the file exists

  24. def mustNotBeADirectory(file: File): Operation[Unit]

    Permalink

    succeeds if the file is not a directory

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  28. def readBytes(filePath: FilePath): Operation[Array[Byte]]

    Permalink

    read the content of a file as an Array of Bytes

  29. def readFile(path: FilePath): Operation[String]

    Permalink

    returns

    the content of a file encoded as UTF8

  30. def readFileWithCodec(path: FilePath, codec: Codec): Operation[String]

    Permalink

    returns

    the content of a file with a specific codec

  31. def readLines(filePath: FilePath): Operation[IndexedSeq[String]]

    Permalink

    returns

    the content of a file as UTF-8 lines

  32. def readLinesWithCodec(filePath: FilePath, codec: Codec): Operation[IndexedSeq[String]]

    Permalink

    returns

    the content of a file with a specific codec

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped