Interface TextReadable

  • All Known Implementing Classes:
    FileTextReadable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TextReadable
    The role of an object that can be read as a stream of characters.
    Author:
    Fabrizio Giudici
    Status: stable API
    • Field Detail

      • _TextReadable_

        static final java.lang.Class<TextReadable> _TextReadable_
      • DEFAULT

        static final TextReadable DEFAULT
        A default implementation which throws IOException when opening the stream.
    • Method Detail

      • openReader

        @Nonnull
        java.io.Reader openReader()
                           throws java.io.IOException
        Returns a Reader to read from the object.
        Returns:
        the Reader
        Throws:
        java.io.IOException - if the operation can't be performed