Class

com.github.scaruby

SWriter

Related Doc: package scaruby

Permalink

abstract class SWriter extends SClosableResource[SWriter]

An object to write characters to a stream.

Source
SWriter.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SWriter
  2. SClosableResource
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SWriter()

    Permalink

Abstract Value Members

  1. abstract def append(sequence: CharSequence)(implicit start: Int = 0, end: Int = sequence.length): SWriter.this.type

    Permalink

    Writes a sequence to this writer

    Writes a sequence to this writer

    start

    start index of sequence to be written

    end

    end index of sequence to be written

    returns

    this

  2. abstract def appendCharacter(character: Char): SWriter.this.type

    Permalink

    Writes a character to this writer

    Writes a character to this writer

    character

    to be written

    returns

    this

  3. abstract def close(): Unit

    Permalink

    Closes this writer.

    Closes this writer. After closing, any method must not be called.

  4. abstract def flush(): Unit

    Permalink

    Flushes this writer

  5. abstract def format(format: String, args: AnyRef*)(implicit locale: Locale = DefaultLocale): SWriter.this.type

    Permalink

    Writes a formatted string to this writer using specified format string and arguments.

    Writes a formatted string to this writer using specified format string and arguments.

    format

    format string

    args

    used by format

    locale

    locale

    returns

    this

  6. abstract def hasError(): Boolean

    Permalink

    Returns whether this has error or not

  7. abstract def print[A](value: A)(implicit arg0: Show[A]): Unit

    Permalink

    Converts a value to a String using Show type classes and print the String.

    Converts a value to a String using Show type classes and print the String.

    A

    type parameter of the value

    value

    to be converted

  8. abstract def printEOL(): Unit

    Permalink

    Prints EOL.

  9. abstract def printf(format: String, args: AnyRef*)(implicit locale: Locale = DefaultLocale): SWriter.this.type

    Permalink

    Writes a formatted string to this writer using specified format string and arguments.

    Writes a formatted string to this writer using specified format string and arguments.

    format

    format string

    args

    used by format

    locale

    locale

    returns

    this

  10. abstract def println[A](value: A)(implicit arg0: Show[A]): Unit

    Permalink

    Converts a value to a String using Show type classes, prints the String, and prints EOL.

    Converts a value to a String using Show type classes, prints the String, and prints EOL.

    A

    type parameter of the value

    value

    to be converted

  11. abstract def self: SWriter

    Permalink
    Definition Classes
    SClosableResource
  12. abstract def write(buffer: Array[Char])(implicit offset: Int = 0, length: Int = buffer.length): Unit

    Permalink

    Writes buffer to this writer using offset and length

    Writes buffer to this writer using offset and length

    buffer

    to be written

    offset

    offset of buffer, which can be omitted.

    length

    length to be written, which is less than buffer.length, which can be omitted.

  13. abstract def writeChar(character: Int): Unit

    Permalink

    Writes character as Char to this writer

  14. abstract def writeString(string: String)(implicit offset: Int = 0, length: Int = string.length): Unit

    Permalink

    Writes string to this writer using offset adn length

    Writes string to this writer using offset adn length

    string

    to be written

    offset

    offset of buffer, which can be omitted.

    length

    length to be written, which is less than buffer.length, which can be omitted.

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def foreach[B](block: (SWriter) ⇒ B): B

    Permalink
    Definition Classes
    SClosableResource
  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. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def use[B](block: (SWriter) ⇒ B): B

    Permalink
    Definition Classes
    SClosableResource
  19. final def wait(): Unit

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

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

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

Inherited from SClosableResource[SWriter]

Inherited from AnyRef

Inherited from Any

Ungrouped