org.specs2.io

FileLinesContent

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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    returns

    the path of a File relative to a base file

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

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

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

    returns

    a FileInputStream for a given file path

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

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

    returns

    the lines for this content

    Definition Classes
    FileLinesContentLinesContent
  18. 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
  19. 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
  20. def md5(f: File): String

    returns

    the MD5 hash of a file

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

    returns

    a name for this content

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

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

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

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

    returns

    the bytes of a file

    Definition Classes
    FileReader
  26. 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
  27. def readLines(path: String): IndexedSeq[String]

    returns

    the lines of a file

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

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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