Packages

  • package root
    Definition Classes
    root
  • package grizzled

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The home page for the Grizzled Scala Library is http://software.clapper.org/grizzled-scala/. Please see that page for complete details, including installation instructions.

    Definition Classes
    root
  • package io

    I/O-related classes and utilities.

    I/O-related classes and utilities. This package is distinguished from the grizzled.file package in that this package operates on already-open Java InputStream, OutputStream, Reader and Writer objects, and on Scala Source objects.

    See grizzled.file

    Definition Classes
    grizzled
  • Implicits
  • MultiSource
  • PartialReader
  • SourceReader

class SourceReader extends Reader

Provides a java.io.Reader that is backed by a Scala Source object.

Linear Supertypes
Reader, Closeable, AutoCloseable, Readable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SourceReader
  2. Reader
  3. Closeable
  4. AutoCloseable
  5. Readable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SourceReader(sourceToWrap: Source)

    sourceToWrap

    the source to wrap

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
    @native() @throws( ... )
  6. def close(): Unit

    Closes the Reader by closing the underlying Source.

    Closes the Reader by closing the underlying Source.

    Definition Classes
    SourceReader → Reader → Closeable → AutoCloseable
  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. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def mark(readAheadLimit: Int): Unit

    mark() is not supported.

    mark() is not supported. This method unconditionally throws IOException.

    readAheadLimit

    the mark limit. Ignored.

    Definition Classes
    SourceReader → Reader
    Annotations
    @SuppressWarnings()
  14. def markSupported(): Boolean

    Return whether mark() is supported.

    Return whether mark() is supported. This version always returns false.

    returns

    false

    Definition Classes
    SourceReader → Reader
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def read(): Int

    Reads a single character.

    Reads a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.

    returns

    the character read, as an integer in the range 0x00 to 0xffff, or -1 if at the end of the underlying Source.

    Definition Classes
    SourceReader → Reader
  19. def read(buf: Array[Char], offset: Int, length: Int): Int

    Reads characters into a portion of an array.

    Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the underlying Source is reached.

    buf

    the destination character buffer

    offset

    offset at which to start reading into the buffer

    length

    maximum number of characters to read

    returns

    total number of characters read, or -1 on EOF.

    Definition Classes
    SourceReader → Reader
  20. def read(arg0: Array[Char]): Int
    Definition Classes
    Reader
    Annotations
    @throws( classOf[java.io.IOException] )
  21. def read(arg0: CharBuffer): Int
    Definition Classes
    Reader → Readable
    Annotations
    @throws( classOf[java.io.IOException] )
  22. def ready(): Boolean

    Tells whether the Reader is ready to be read.

    Tells whether the Reader is ready to be read. The Reader APi states that this method "returns true if the next read() is guaranteed not to block for input, false otherwise. Note that returning false does not guarantee that the next read will block."

    There's no simple mapping of ready() to a Source, so this method always returns false.

    returns

    false, unconditionally.

    Definition Classes
    SourceReader → Reader
  23. def reset(): Unit

    Resets the Reader by resetting the underlying Source.

    Resets the Reader by resetting the underlying Source.

    Definition Classes
    SourceReader → Reader
  24. def skip(n: Long): Long

    Skips characters.

    Skips characters. This method will block until some characters are available, an I/O error occurs, or the end of the underlying Source is reached.

    n

    the number of characters to skip

    returns

    the number of characters actually skipped

    Definition Classes
    SourceReader → Reader
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Reader

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Readable

Inherited from AnyRef

Inherited from Any

Ungrouped