Package org.ojalgo.netio
Interface FromFileReader<T>
- All Superinterfaces:
AutoCloseable
,AutoFunctional
,AutoSupplier<T>
,Closeable
,Iterable<T>
,Supplier<T>
- All Known Implementing Classes:
DataReader
,TextLineReader
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
static void
copy
(File sourceFile, Properties destinationMap) Read the properties file and copy the entries to the supplied destinationProperties
instance.static void
Delete this file or directory (does not need to be empty).static <T extends Serializable>
Tstatic InputStream
static InputStream
input
(File file, OperatorWithException<InputStream> filter) static FromFileReader.Builder
newBuilder
(File... file) static FromFileReader.Builder
newBuilder
(ShardedFile shards) static <S,
T> Supplier <AutoSupplier<T>> newFactory
(Function<S, FromFileReader<T>> factory, Collection<? extends S> sources) A factory that produce readers that read items from the supplied sources.static <S,
T> Supplier <AutoSupplier<T>> newFactory
(Function<S, FromFileReader<T>> factory, S... sources) Methods inherited from interface org.ojalgo.type.function.AutoSupplier
drainTo, get, iterator, processAll, read
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
copy
Read the properties file and copy the entries to the supplied destinationProperties
instance.- Parameters:
sourceFile
- Source properties filedestinationMap
- Destination properties map
-
delete
Delete this file or directory (does not need to be empty).- Parameters:
file
- Path to a file or directory to be deleted
-
deserializeObjectFromFile
-
input
-
input
-
newBuilder
-
newBuilder
-
newFactory
static <S,T> Supplier<AutoSupplier<T>> newFactory(Function<S, FromFileReader<T>> factory, 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> Supplier<AutoSupplier<T>> newFactory(Function<S, FromFileReader<T>> factory, S... sources) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoSupplier<T>
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-