Object

org.specs2.io

FileLinesContent

Related Doc: package io

Permalink

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
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
    @throws( ... )
  6. def differences[L2](ls1: File, ls2: L2, partial: Boolean = false, unordered: Boolean = false, reportMisplaced: Boolean = false)(implicit arg0: LinesContent[L2]): LinesContentDifference

    Permalink

    returns

    the differences with another content

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

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

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

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

    Permalink

    returns

    the path of a File relative to a base file

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

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

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

    Permalink

    returns

    a FileInputStream for a given file path

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

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

    Permalink

    returns

    the lines for this content

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

    Permalink

    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

    Permalink

    returns

    the xml content of a file, using the XML parser

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

    Permalink

    returns

    the MD5 hash of a file

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

    Permalink

    returns

    a name for this content

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

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

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

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

    Permalink

    returns

    the bytes of a file

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

    Permalink

    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]

    Permalink

    returns

    the lines of a file

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

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

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

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

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

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

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

Inherited from FileReader

Inherited from LinesContent[File]

Inherited from AnyRef

Inherited from Any

Ungrouped