StringBuilderWriter
[[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 [[Thread]]s then java.io.StringWriter should be used.
Attributes
- Since
-
3.1
- Graph
-
- Supertypes
-
trait Serializableclass Writertrait Flushabletrait Closeabletrait AutoCloseabletrait Appendableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
Construct a new [[StringBuilder]] instance with the specified capacity.
Construct a new [[StringBuilder]] instance with the specified capacity.
Value parameters
- capacity
-
The initial capacity of the underlying { @link StringBuilder}
Attributes
Concrete methods
Append a single character to this Writer.
Append a single character to this Writer.
Attributes
- Definition Classes
-
Writer -> Appendable
Append a character sequence to this Writer.
Append a character sequence to this Writer.
Attributes
- Definition Classes
-
Writer -> Appendable
Append a portion of a character sequence to the [[StringBuilder]].
Append a portion of a character sequence to the [[StringBuilder]].
Attributes
- Definition Classes
-
Writer -> Appendable
Closing this writer has no effect.
Closing this writer has no effect.
Attributes
- Definition Classes
-
Writer -> Closeable -> AutoCloseable
Flushing this writer has no effect.
Flushing this writer has no effect.
Attributes
- Definition Classes
-
Writer -> Flushable
Returns [[StringBuilder# toString ( )]].
Returns [[StringBuilder# toString ( )]].
Attributes
- Definition Classes
-
Any
Write a String to the [[StringBuilder]].
Write a String to the [[StringBuilder]].
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
-
Writer
Write a portion of a character array to the [[StringBuilder]].
Write a portion of a character array to the [[StringBuilder]].
Attributes
- Definition Classes
-
Writer