Class FileTextReadable

  • All Implemented Interfaces:
    TextReadable

    public class FileTextReadable
    extends java.lang.Object
    implements TextReadable
    An implementation of TextReadable which delegates to a File.
    Author:
    Fabrizio Giudici
    Status: stable API
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Reader openReader()
      Returns a Reader to read from the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileTextReadable

        public FileTextReadable()
    • Method Detail

      • openReader

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