Package java.util.prefs

Examples of java.util.prefs.BackingStoreException


                keys.add( attr.getUpId() );
            }
        }
        catch ( Exception e )
        {
            throw new BackingStoreException( e );
        }

        return keys.toArray( EMPTY_STRINGS );
    }
View Full Code Here


    @Override
    protected void flushSpi() throws BackingStoreException
    {
        if ( !file.getParentFile().exists() && !file.getParentFile().mkdirs() )
        {
            throw new BackingStoreException("Could not create parent directories for: " + file);
        }

        OutputStream        out = null;
        try
        {
            out = new BufferedOutputStream(new FileOutputStream(file));
            properties.store(out, "# Auto-generated by " + FileBasedPreferences.class.getName());
        }
        catch ( IOException e )
        {
            throw new BackingStoreException(e);
        }
        finally
        {
            Closeables.closeQuietly(out);
        }
View Full Code Here

TOP

Related Classes of java.util.prefs.BackingStoreException

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.