Package pdfdb.settings

Examples of pdfdb.settings.IgnoredFileManager


            case UPDATED:
                IndexableFile file = FileProvider.addFile(path);

                if (file == null)
                {
                    IgnoredFileManager manager = IgnoredFileManager.getInstance();
                    manager.set(path, "Failed to index.");
                    manager.save();
                    error = true;
                }
                break;
            case REMOVED:
                FileProvider.deleteFile(path);
View Full Code Here


     * @return True if the file should be considered. */
    @Override
    protected boolean isUsed(String path)
    {
        Indexer i = IndexingProvider.getIndexer(path);
        IgnoredFileManager manager = IgnoredFileManager.getInstance();
        return i != null && manager.get(path) == null;
    }
View Full Code Here

                if (!decrypted) {
                    decrypted = this.getPasswordFromUser(doc);
                }

                if (!decrypted) {
                    IgnoredFileManager ignoredManager = IgnoredFileManager.getInstance();
                    ignoredManager.set(path, "true");
                    ignoredManager.save();
                    return null;
                }
            }
            return doc;
        } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of pdfdb.settings.IgnoredFileManager

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.