package scales.utils.io /** * To provide a writer to LSSerializer (and anything else that wants it ^_^) * we need to wrap appendables. */ case class AppendableWriter( out : Appendable ) extends java.io.Writer { def close() {} def flush() {} def write(cbuf : Array[Char], off : Int, len : Int) { var i = 0 while(i < len){ out.append(cbuf(off + i)) } } }
<iframe src="https://scalesxml.github.io/scales-xml_2.10/0.5.0/api.sxr/scales/utils/io/AppendableWriter.scala.html" width="1280" height="720" frameborder="0"> </iframe>