Class StreamCharSource
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
io.github.wasabithumb.jtoml.io.source.StreamCharSource
- All Implemented Interfaces:
CharSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionStreamCharSource(@NotNull InputStream in, @NotNull io.github.wasabithumb.jtoml.option.prop.OrderMarkPolicy bomPolicy) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.wasabithumb.jtoml.io.source.CharSource
next, nextChar
-
Constructor Details
-
StreamCharSource
public StreamCharSource(@NotNull @NotNull InputStream 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:
nextin interfaceCharSource- Throws:
io.github.wasabithumb.jtoml.except.TomlException
-
close
public void close() throws io.github.wasabithumb.jtoml.except.TomlIOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCharSource- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
io.github.wasabithumb.jtoml.except.TomlIOException
-