public class MultiFileReader extends java.io.Reader
Reader which can be used to read in multiple files sequentially. That is, when the first file ends
it will silently move to the next file and so on. If the file has a ".gz" extension, this Reader will properly handle it; all
other types of files will simply be read using a FileReader.| Constructor and Description |
|---|
MultiFileReader(java.util.ArrayList<java.io.File> files)
Constructs the MultiFileReader with the given files.
|
public MultiFileReader(java.util.ArrayList<java.io.File> files) throws java.io.IOException
files - The files to readjava.io.IOException - If there was a problem opening the first filepublic int read(char[] cbuf, int off, int len) throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close() throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionCopyright © 2017 Apache Software Foundation. All Rights Reserved.