Class WriterCharTarget

java.lang.Object
java.io.Writer
java.io.FilterWriter
io.github.wasabithumb.jtoml.io.target.WriterCharTarget
All Implemented Interfaces:
CharTarget, Closeable, Flushable, Appendable, AutoCloseable

public final class WriterCharTarget extends FilterWriter implements CharTarget
  • Constructor Details

    • WriterCharTarget

      public WriterCharTarget(@NotNull @NotNull Writer out)
  • Method Details

    • of

      @NotNull public static @NotNull WriterCharTarget of(@NotNull @NotNull OutputStream out)
    • put

      public void put(int c) throws io.github.wasabithumb.jtoml.except.TomlException
      Specified by:
      put in interface CharTarget
      Throws:
      io.github.wasabithumb.jtoml.except.TomlException
    • put

      public void put(char c) throws io.github.wasabithumb.jtoml.except.TomlException
      Specified by:
      put in interface CharTarget
      Throws:
      io.github.wasabithumb.jtoml.except.TomlException
    • put

      public void put(@NotNull @NotNull CharSequence cs) throws io.github.wasabithumb.jtoml.except.TomlException
      Specified by:
      put in interface CharTarget
      Throws:
      io.github.wasabithumb.jtoml.except.TomlException
    • flush

      public void flush() throws io.github.wasabithumb.jtoml.except.TomlIOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class FilterWriter
      Throws:
      io.github.wasabithumb.jtoml.except.TomlIOException
    • close

      public void close() throws io.github.wasabithumb.jtoml.except.TomlIOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface CharTarget
      Specified by:
      close in interface Closeable
      Overrides:
      close in class FilterWriter
      Throws:
      io.github.wasabithumb.jtoml.except.TomlIOException