org.beangle.commons.io

StringBuilderWriter

Related Doc: package io

class StringBuilderWriter extends Writer with Serializable

Writer implementation that outputs to a StringBuilder.

NOTE: This implementation, as an alternative to java.io.StringWriter, provides an un-synchronized (i.e. for use in a single thread) implementation for better performance. For safe usage with multiple Threads then java.io.StringWriter should be used.

Annotations
@SerialVersionUID()
Since

3.1

Linear Supertypes
Serializable, Serializable, Writer, Flushable, Closeable, AutoCloseable, Appendable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringBuilderWriter
  2. Serializable
  3. Serializable
  4. Writer
  5. Flushable
  6. Closeable
  7. AutoCloseable
  8. Appendable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringBuilderWriter(capacity: Int = 16)

    Construct a new StringBuilder instance with the specified capacity.

    Construct a new StringBuilder instance with the specified capacity.

    capacity

    The initial capacity of the underlying StringBuilder

  2. new StringBuilderWriter(builder: StringBuilder)

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. def append(value: CharSequence, start: Int, end: Int): Writer

    Append a portion of a character sequence to the StringBuilder.

    Append a portion of a character sequence to the StringBuilder.

    Definition Classes
    StringBuilderWriter → Writer → Appendable
  5. def append(value: CharSequence): Writer

    Append a character sequence to this Writer.

    Append a character sequence to this Writer.

    Definition Classes
    StringBuilderWriter → Writer → Appendable
  6. def append(value: Char): Writer

    Append a single character to this Writer.

    Append a single character to this Writer.

    Definition Classes
    StringBuilderWriter → Writer → Appendable
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val builder: StringBuilder

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(): Unit

    Closing this writer has no effect.

    Closing this writer has no effect.

    Definition Classes
    StringBuilderWriter → Writer → Closeable → AutoCloseable
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flush(): Unit

    Flushing this writer has no effect.

    Flushing this writer has no effect.

    Definition Classes
    StringBuilderWriter → Writer → Flushable
  15. final def getClass(): Class[_]

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

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

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

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

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

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

    Definition Classes
    AnyRef
  22. def toString(): String

    Returns StringBuilder#toString().

    Returns StringBuilder#toString().

    Definition Classes
    StringBuilderWriter → AnyRef → Any
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def write(value: Array[Char], offset: Int, length: Int): Unit

    Write a portion of a character array to the StringBuilder.

    Write a portion of a character array to the StringBuilder.

    Definition Classes
    StringBuilderWriter → Writer
  27. def write(value: String): Unit

    Write a String to the StringBuilder.

    Write a String to the StringBuilder.

    value

    The value to write

    Definition Classes
    StringBuilderWriter → Writer
  28. def write(arg0: String, arg1: Int, arg2: Int): Unit

    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )
  29. def write(arg0: Array[Char]): Unit

    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )
  30. def write(arg0: Int): Unit

    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )

Inherited from Serializable

Inherited from Serializable

Inherited from Writer

Inherited from Flushable

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Appendable

Inherited from AnyRef

Inherited from Any

Ungrouped