use of org.talend.fileprocess.FileInputDelimited in project components by Talend.
the class FileInputDelimitedRuntime method getFileDelimited.
public FileInputDelimited getFileDelimited() throws IOException {
FileInputDelimited fileInputDelimited = null;
if (uncompress) {
ZipEntry zipEntry = null;
if (hashNextEntry()) {
fileInputDelimited = new FileInputDelimited(zipInputStream, encoding, props.fieldSeparator.getValue(), props.rowSeparator.getValue(), props.removeEmptyRow.getValue(), header, footer, limit, nbRandom, splitRecord);
}
} else {
if (sourceIsStream) {
checkFooterAndRandom();
fileInputDelimited = new FileInputDelimited((InputStream) fileNameOrStream, encoding, props.fieldSeparator.getValue(), props.rowSeparator.getValue(), props.removeEmptyRow.getValue(), header, footer, limit, nbRandom, splitRecord);
} else {
fileInputDelimited = new FileInputDelimited(String.valueOf(fileNameOrStream), encoding, props.fieldSeparator.getValue(), props.rowSeparator.getValue(), props.removeEmptyRow.getValue(), header, footer, limit, nbRandom, splitRecord);
}
}
return fileInputDelimited;
}
Aggregations