in scala/xml
class TextBuffer

class TextBuffer()
extends Object
with ScalaObject

this classes 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.

Field Summary
  val sb: StringBuffer

Method Summary
  def append(cs: Seq[Char]): TextBuffer
     appends this string to the text buffer, trimming whitespaces as needed
  def appendChar(c: Char): StringBuffer
  def appendSpace: Any
  def toText: Seq[Text]
     returns an empty sequence if text is only whitespace
  var ws: Boolean

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Field Detail

sb

  val sb: StringBuffer
Method Detail

ws

  var ws: Boolean

appendSpace

  def appendSpace: Any

appendChar

  def appendChar(c: Char): StringBuffer

append

  def append(cs: Seq[Char]): TextBuffer
appends this string to the text buffer, trimming whitespaces as needed

toText

  def toText: Seq[Text]
returns an empty sequence if text is only whitespace