grizzled.io

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SourceReader(sourceToWrap: Source)

    sourceToWrap

    the source to wrap

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 close(): Unit

    Closes the Reader by closing the underlying Source.

    Closes the Reader by closing the underlying Source.

    Definition Classes
    SourceReader → Reader → Closeable → AutoCloseable
  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. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. 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
  16. def markSupported(): Boolean

    Return whether mark() is supported.

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

    returns

    false

    Definition Classes
    SourceReader → Reader
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. 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
  21. 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
  22. def read(arg0: Array[Char]): Int

    Definition Classes
    Reader
    Annotations
    @throws( classOf[java.io.IOException] )
  23. def read(arg0: CharBuffer): Int

    Definition Classes
    Reader → Readable
    Annotations
    @throws( classOf[java.io.IOException] )
  24. 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
  25. def reset(): Unit

    Resets the Reader by resetting the underlying Source.

    Resets the Reader by resetting the underlying Source.

    Definition Classes
    SourceReader → Reader
  26. 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
  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 Reader

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Readable

Inherited from AnyRef

Inherited from Any

Ungrouped