
scales.utils.io.AppendableWriter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scales-xml_2.11 Show documentation
Show all versions of scales-xml_2.11 Show documentation
An alternate Scala Xml processing library
The newest version!
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))
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy