Class/Object

grizzled.io

SourceReader

Related Docs: object SourceReader | package io

Permalink

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)

    Permalink

    sourceToWrap

    the source to wrap

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

    Permalink

    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

    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. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  13. def mark(readAheadLimit: Int): Unit

    Permalink

    mark() is not supported.

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

    readAheadLimit

    the mark limit. Ignored.

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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def read(): Int

    Permalink

    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

    Permalink

    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

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

    Permalink
    Definition Classes
    Reader → Readable
    Annotations
    @throws( classOf[java.io.IOException] )
  22. def ready(): Boolean

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

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

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

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

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

Inherited from Reader

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Readable

Inherited from AnyRef

Inherited from Any

Ungrouped