public class FileSetInputStream extends InputStream
| Constructor and Description |
|---|
FileSetInputStream(String dirName,
String fileNamePattern,
String[] fieldsInName,
String separator,
boolean prepend,
boolean headerless,
CryptoFilter filter,
int skipLeadingDataLines) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read()
Reads the next byte of data from the input stream.
|
void |
reset() |
available, mark, markSupported, read, read, skippublic FileSetInputStream(String dirName, String fileNamePattern, String[] fieldsInName, String separator, boolean prepend, boolean headerless, CryptoFilter filter, int skipLeadingDataLines) throws IOException
dirName - the containing directoryfileNamePattern - the regular expression describing the file name and the extra
fields.fieldsInName - the names of the fields contained in the file name.separator - the separator to use when faking output (typically the ",").prepend - whether the extra fields should precede the ones from the file
content.headerless - if true, then there is no header on first line of file.filter - filter for decoding bytes read from file.skipLeadingDataLines - number of lines to skip at start of file before header line.IOException - if a file cannot be opened or read.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOException - if an I/O error occurs.public void reset()
throws IOException
reset in class InputStreamIOExceptionCopyright © 2016. All rights reserved.