Interface FromFileReader<T>

    • Method Detail

      • copy

        static void copy​(java.io.File sourceFile,
                         java.util.Properties destinationMap)
        Read the properties file and copy the entries to the supplied destination Properties instance.
        Parameters:
        sourceFile - Source properties file
        destinationMap - Destination properties map
      • delete

        static void delete​(java.io.File file)
        Delete this file or directory (does not need to be empty).
        Parameters:
        file - Path to a file or directory to be deleted
      • deserializeObjectFromFile

        static <T extends java.io.Serializable> T deserializeObjectFromFile​(java.io.File file)
      • input

        static java.io.InputStream input​(java.io.File file)
      • input

        static java.io.InputStream input​(java.io.File file,
                                         OperatorWithException<java.io.InputStream> filter)
      • newFactory

        static <S,​T> java.util.function.Supplier<AutoSupplier<T>> newFactory​(java.util.function.Function<S,​FromFileReader<T>> factory,
                                                                                   java.util.Collection<? extends S> sources)
        A factory that produce readers that read items from the supplied sources. (You have a collection of files and want to read through them all using 1 or more readers.)
      • newFactory

        static <S,​T> java.util.function.Supplier<AutoSupplier<T>> newFactory​(java.util.function.Function<S,​FromFileReader<T>> factory,
                                                                                   S... sources)
      • close

        default void close()
                    throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface AutoSupplier<T>
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException