Package java.util

Examples of java.util.Properties.save()


            FileOutputStream stream = new FileOutputStream(root + "JetspeedResources.properties");
                       
            prop.save(stream, "topnav.logo.file");
           
            prop.save(stream, "portal.title");
            prop.save(stream, "topnav.bg.image");
            prop.save(stream, "topnav.bg.color");
            prop.save(stream, "ptopnav.font.size");
            prop.save(stream, "ptopnav.font.size");
            stream.close();
View Full Code Here


            FileOutputStream stream = new FileOutputStream(root + "JetspeedResources.properties");
                       
            prop.save(stream, "topnav.logo.file");
           
            prop.save(stream, "portal.title");
            prop.save(stream, "topnav.bg.image");
            prop.save(stream, "topnav.bg.color");
            prop.save(stream, "ptopnav.font.size");
            prop.save(stream, "ptopnav.font.size");
            stream.close();
           
View Full Code Here

                       
            prop.save(stream, "topnav.logo.file");
           
            prop.save(stream, "portal.title");
            prop.save(stream, "topnav.bg.image");
            prop.save(stream, "topnav.bg.color");
            prop.save(stream, "ptopnav.font.size");
            prop.save(stream, "ptopnav.font.size");
            stream.close();
           
            context.put("settingStatus",
View Full Code Here

            prop.save(stream, "topnav.logo.file");
           
            prop.save(stream, "portal.title");
            prop.save(stream, "topnav.bg.image");
            prop.save(stream, "topnav.bg.color");
            prop.save(stream, "ptopnav.font.size");
            prop.save(stream, "ptopnav.font.size");
            stream.close();
           
            context.put("settingStatus",
                    "Successfully changed to default settings.");
View Full Code Here

           
            prop.save(stream, "portal.title");
            prop.save(stream, "topnav.bg.image");
            prop.save(stream, "topnav.bg.color");
            prop.save(stream, "ptopnav.font.size");
            prop.save(stream, "ptopnav.font.size");
            stream.close();
           
            context.put("settingStatus",
                    "Successfully changed to default settings.");
        } catch (Exception e)
View Full Code Here

      File confFile=new File("interop.prefs");
      //JFrame parent=(JFrame)getParent().getParent().getParent().getParent();
      String urlText=jTextFieldUrl.getText();
      props.setProperty("app.URL",urlText);
      FileOutputStream is=new FileOutputStream(confFile);
      props.save(is,"Prefs for interop");
     
    }
}
View Full Code Here

    public static void saveSettings(Activity aActivity) {
        Properties lProps = new Properties();
        try {
            lProps.put("url", URL);
            lProps.save(aActivity.openFileOutput(CONFIG_FILE, Context.MODE_PRIVATE), "jWebSocketClient Configuration");
        } catch (Exception ex) {
            Toast.makeText(aActivity.getApplicationContext(), ex.getClass().getSimpleName() + ":" + ex.getMessage(),
                    Toast.LENGTH_SHORT).show();
        }
    }
View Full Code Here

        myProps.setProperty("Property A", "aye");
        myProps.setProperty("Property B", "bee");
        myProps.setProperty("Property C", "see");

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        myProps.save(out, "A Header");
        out.close();

        Properties myProps2 = new Properties();
        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        myProps2.load(in);
View Full Code Here

            if( requiredSecret !=null ) {
                props.put( "secret", requiredSecret );
            }

            FileOutputStream stopF=new FileOutputStream( sf );
            props.save( stopF, "Automatically generated, don't edit" );
        } catch( IOException ex ) {
            log.debug( "Can't create stop file: "+sf );
            ex.printStackTrace();
        }
    }
View Full Code Here

            fileOut = new FileOutputStream(path);
        } catch (IOException e) {
            System.out.println("Could not open file for writiing");
        }

        newProps.save(fileOut, "Serial Demo poperties");

        try {
            fileOut.close();
        } catch (IOException e) {
            System.out.println("Could not close file for writiing");
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.