Examples of IFormatReader


Examples of com.nardoz.restopengov.utils.IFormatReader

                    Crawler.logger.info("Completed extraction for: " + entry);

                    RemoteFile file = new RemoteFile("file://" + tmpFile.getAbsolutePath());

                    ICSVFetcherResult callback = new ElasticIndexer(client, file.type, file.id + "-" + id);
                    IFormatReader fileReader = FileReader.read(file, callback);

                    if(fileReader != null) {
                        fileReader.readFromFile(tmpFile.getPath());
                    }

                }

                zipinputstream.close();
View Full Code Here

Examples of com.nardoz.restopengov.utils.IFormatReader

            ICSVFetcherResult callback = new ElasticIndexer(client, file.type, file.id);

            try {

                IFormatReader fileReader = FileReader.read(file, callback);

                if(fileReader != null) {
                    fileReader.readFromURL(file.url.toString());
                }

            } catch (Exception e) {
                Crawler.logger.error(e.getMessage());
                e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.