scala.xml

class TextBuffer

[source: scala/xml/TextBuffer.scala]

class TextBuffer
extends AnyRef
The class TextBuffer is for creating text nodes without surplus whitespace. All occurrences of one or more whitespace in strings appended with the append method will be replaced by a single space character, and leading and trailing space will be removed completely.
Value Summary
val sb : StringBuilder
var ws : Boolean
Method Summary
def append (cs : Seq[Char]) : TextBuffer
Appends this string to the text buffer, trimming whitespaces as needed.
def appendChar (c : Char) : StringBuilder
def appendSpace : Any
def toText : Seq[Text]
Returns an empty sequence if text is only whitespace.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val sb : StringBuilder

var ws : Boolean

Method Details
def appendSpace : Any

def appendChar(c : Char) : StringBuilder

def append(cs : Seq[Char]) : TextBuffer
Appends this string to the text buffer, trimming whitespaces as needed.
Parameters
cs - ...
Returns
...

def toText : Seq[Text]
Returns an empty sequence if text is only whitespace.
Returns
the text without whitespaces.