scala.tools.nsc.io

Fileish

class Fileish extends Chars

A common interface for File-based things and Stream-based things. (In particular, io.File and JarEntry.)

Source
Fileish.scala
Linear Supertypes
Chars, Bytes, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Fileish
  2. Chars
  3. Bytes
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Fileish(path: Path, input: () ⇒ InputStream)

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. def applyReader[T](f: (BufferedReader) ⇒ T): T

    Creates a BufferedReader and applies the closure, automatically closing it on completion.

    Creates a BufferedReader and applies the closure, automatically closing it on completion.

    Definition Classes
    Chars
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def bufferedInput(): BufferedInputStream

    Definition Classes
    Bytes
  9. def bufferedReader(codec: Codec): BufferedReader

    Definition Classes
    Chars
  10. def bufferedReader(): BufferedReader

    Wraps a BufferedReader around the result of reader().

    Wraps a BufferedReader around the result of reader().

    Definition Classes
    Chars
  11. def bytes(): Iterator[Byte]

    Definition Classes
    Bytes
  12. def bytesAsInts(): Iterator[Int]

    Definition Classes
    Bytes
  13. def chars(codec: Codec): BufferedSource

    Definition Classes
    Chars
  14. def chars(): BufferedSource

    Definition Classes
    Chars
  15. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def creationCodec: Codec

    Calls to methods requiring byte<->char transformations should be offered in a form which allows specifying the codec.

    Calls to methods requiring byte<->char transformations should be offered in a form which allows specifying the codec. When it is not specified, the one discovered at creation time will be used, which will always find the one in scala.io.Codec if no other is available. This can be overridden to use a different default.

    Definition Classes
    Chars
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  22. val input: () ⇒ InputStream

  23. def inputStream(): InputStream

    Definition Classes
    FileishBytes
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isSourceFile: Boolean

  26. def length: Long

    Definition Classes
    Bytes
  27. def lines(codec: Codec): Iterator[String]

    Definition Classes
    Chars
  28. def lines(): Iterator[String]

    Definition Classes
    Chars
  29. def name: String

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

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

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

    Definition Classes
    AnyRef
  33. def parent: Directory

  34. val path: Path

  35. lazy val pkgFromPath: String

  36. lazy val pkgFromSource: String

  37. def reader(codec: Codec): InputStreamReader

    Definition Classes
    Chars
  38. def reader(): InputStreamReader

    Obtains an InputStreamReader wrapped around a FileInputStream.

    Obtains an InputStreamReader wrapped around a FileInputStream.

    Definition Classes
    Chars
  39. def slurp(codec: Codec): String

    Definition Classes
    Chars
  40. def slurp(): String

    Convenience function to import entire file into a String.

    Convenience function to import entire file into a String.

    Definition Classes
    Chars
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toByteArray(): Array[Byte]

    This method aspires to be the fastest way to read a stream of known length into memory.

    This method aspires to be the fastest way to read a stream of known length into memory.

    Definition Classes
    Bytes
  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Chars

Inherited from Bytes

Inherited from AnyRef

Inherited from Any