All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ujson.Renderer.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-M2
Show newest version
package ujson

import java.io.ByteArrayOutputStream

import upickle.core.{ArrVisitor, ObjVisitor, Visitor}

import scala.annotation.switch

case class BytesRenderer(indent: Int = -1, escapeUnicode: Boolean = false)
  extends BaseByteRenderer(new ByteArrayOutputStream(), indent, escapeUnicode){
}


case class StringRenderer(indent: Int = -1,
                          escapeUnicode: Boolean = false)
  extends BaseCharRenderer(new java.io.StringWriter(), indent, escapeUnicode)

case class Renderer(out: java.io.Writer,
                    indent: Int = -1,
                    escapeUnicode: Boolean = false)
  extends BaseCharRenderer(out, indent, escapeUnicode)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy