Package fr.pingtimeout.jtail.io

Examples of fr.pingtimeout.jtail.io.FileIndexer


                indexerClass = RomFileIndex.class;
                break;
        }

        // Préparer l'indexation du fichier
        final FileIndexer fileIndexer;
        final FileIndexerWorker fileIndexerWorker;

        try {
            fileIndexer = new FileIndexer(openFileModel.getFile(), indexerClass);
            fileIndexer.addObserver(this);
        } catch (FileNotFoundException e) {
            ExceptionHandler.handle(e, UIMessage.ERROR_FILE_NOT_FOUND, openFileModel.getFile().getName());
            return;
        }
View Full Code Here


        JTailLogger.debug("Notification received : {} emitted by {}", //NON-NLS
                arg, o);

        // Lorsque l'indexation est terminée, créer le JTailModel et l'ajouter dans l'application
        if ((Integer) arg == 100) {
            final FileIndexer fileIndexer = (FileIndexer) o;
            final File file = fileIndexer.getFile();
            try {
                final LineReader lineReader = new LineReader(file, fileIndexer.getIndex());
                final JTailModel model = new JTailModel(file, lineReader);
                this.jTailMainModel.add(model);
            } catch (FileNotFoundException e) {
                ExceptionHandler.handle(e, UIMessage.ERROR_FILE_NOT_FOUND, file.getName());
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of fr.pingtimeout.jtail.io.FileIndexer

Copyright © 2018 www.massapicom. 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.