org.specs2.io

FileLinesContent

Related Doc: package io

object FileLinesContent extends LinesContent[File] with FileReader

Default implementation for reading lines out of a file

Linear Supertypes
FileReader, LinesContent[File], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileLinesContent
  2. FileReader
  3. LinesContent
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def differences[L2](ls1: File, ls2: L2, partial: Boolean = false, unordered: Boolean = false, reportMisplaced: Boolean = false)(implicit arg0: LinesContent[L2]): LinesContentDifference

    returns

    the differences with another content

    Definition Classes
    LinesContent
  7. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fromBaseFile(base: File): (File) ⇒ String

    returns

    the path of a File relative to a base file

    Definition Classes
    FileReader
  11. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  13. def inputStream(filePath: String): InputStream

    returns

    a FileInputStream for a given file path

    Definition Classes
    FileReader
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def lines(f: File): Seq[String]

    returns

    the lines for this content

    Definition Classes
    FileLinesContentLinesContent
  16. def loadXhtmlFile(filePath: String, report: (Exception, String) ⇒ Unit = defaultLoadXhtmlFileReport, sourceErrors: Boolean = true): NodeSeq

    returns

    the xml content of a file using the Xhtml parser

    if the file contains several nodes, it wraps them up in a single artificial node

    Definition Classes
    FileReader
  17. def loadXmlFile(filePath: String)(report: (Exception) ⇒ Unit = (e:Exception) => e.printStackTrace): NodeSeq

    returns

    the xml content of a file, using the XML parser

    Definition Classes
    FileReader
  18. def md5(f: File): String

    returns

    the MD5 hash of a file

    Definition Classes
    FileReader
  19. def name(f: File): String

    returns

    a name for this content

    Definition Classes
    FileLinesContentLinesContent
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def readBytes(path: String): Array[Byte]

    returns

    the bytes of a file

    Definition Classes
    FileReader
  24. def readFile(path: String): String

    reads the content of a file

    reads the content of a file

    path

    the path of the file to read

    returns

    the content of the file at path

    Definition Classes
    FileReader
  25. def readLines(path: String): IndexedSeq[String]

    returns

    the lines of a file

    Definition Classes
    FileReader
  26. def silentLoadXhtmlFileReport: (Exception, String) ⇒ Unit

    Definition Classes
    FileReader
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileReader

Inherited from LinesContent[File]

Inherited from AnyRef

Inherited from Any

Ungrouped