private InputStream getCsvFileStream ( ) throws FileNotFoundException { if ( myZipFileStream == null ) { if ( myZipFilePath == null ) { final String csvFileName = getBundledCsvFileName ( ) ; return getClass ( ) . getClassLoader ( ) . getResourceAsStream ( csvFileName ) ; } else { return new FileInputStream ( myZipFilePath ) ; } } else { return myZipFileStream ; } }
Returns the InputStream to the CSV file . This is either the bundled ZIP file or the one passed in the constructor .