Interface TextInput

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
FileInput, ReaderInput

@CyclicDependency(reason="factory methods") public interface TextInput extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Close the stream, ir there is any.
    default @Opt String
    Deliver a human readable text for the source identification.
    Deliver the stream of decoded characters.
    static TextInput
    of(File file, Charset encoding)
    Factory method.
    static TextInput
    of(Reader reader)
    Factory method.
    static TextInput
    of(Reader reader, @Opt String readableSourceInfo)
    Factory method.