Class StringCharSource

java.lang.Object
io.github.wasabithumb.jtoml.io.source.StringCharSource
All Implemented Interfaces:
CharSource, Closeable, AutoCloseable

public final class StringCharSource extends Object implements CharSource
  • Constructor Details

    • StringCharSource

      public StringCharSource(@NotNull @NotNull String string)
  • Method Details

    • 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
    • nextChar

      public char nextChar() throws io.github.wasabithumb.jtoml.except.TomlException
      Specified by:
      nextChar in interface CharSource
      Throws:
      io.github.wasabithumb.jtoml.except.TomlException
    • close

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