Class ReaderCharSource

java.lang.Object
java.io.Reader
java.io.FilterReader
io.github.wasabithumb.jtoml.io.source.ReaderCharSource
All Implemented Interfaces:
CharSource, Closeable, AutoCloseable, Readable

public final class ReaderCharSource extends FilterReader implements CharSource
  • Constructor Details

    • ReaderCharSource

      public ReaderCharSource(@NotNull @NotNull Reader in, @NotNull @NotNull io.github.wasabithumb.jtoml.option.prop.OrderMarkPolicy bomPolicy)
  • Method Details

    • didReadBOM

      public boolean didReadBOM()
    • next

      public @org.jetbrains.annotations.Range(from=-1L, to=65535L) int next() throws io.github.wasabithumb.jtoml.except.TomlException
      Specified by:
      next in interface CharSource
      Throws:
      io.github.wasabithumb.jtoml.except.TomlException
    • close

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