WriterConfig.kt 314 B

12345678910111213
  1. package dev.botta.json.writer
  2. import java.io.Writer
  3. abstract class WriterConfig {
  4. abstract fun createWriter(writer: Writer): JsonWriter
  5. companion object {
  6. var MINIMAL = object : WriterConfig() {
  7. override fun createWriter(writer: Writer) = MinimalJsonWriter(writer)
  8. }
  9. }
  10. }