Package org.openide.util.io

Examples of org.openide.util.io.NbObjectInputStream.readObject()


    private IngestModuleIngestJobSettings loadJobSettings(IngestModuleFactory factory) {
        IngestModuleIngestJobSettings settings = null;
        File settingsFile = new File(getModuleSettingsFilePath(factory));
        if (settingsFile.exists()) {
            try (NbObjectInputStream in = new NbObjectInputStream(new FileInputStream(settingsFile.getAbsolutePath()))) {
                settings = (IngestModuleIngestJobSettings) in.readObject();
            } catch (IOException | ClassNotFoundException ex) {
                String logMessage = String.format("Error loading ingest job settings for %s module for %s context, using defaults", factory.getModuleDisplayName(), launcherContext); //NON-NLS
                logger.log(Level.WARNING, logMessage, ex);
            }
        }
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.