Package java.util

Examples of java.util.Properties.storeToXML()


            Properties p = new Properties();

            p.setProperty("id", Integer.toString(serverZone.getId()));
            p.setProperty("maxZoneId", Integer.toString(serverZone.getMaxZoneID()));

            p.storeToXML(new BufferedOutputStream(new FileOutputStream(new File(path, "server.xml"))), "Data of server");
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
View Full Code Here


            Properties p = new Properties();

            p.setProperty("id", Integer.toString(worldZone.getId()));
            p.setProperty("dimId", Integer.toString(worldZone.getDimensionID()));

            p.storeToXML(new BufferedOutputStream(new FileOutputStream(new File(path, "world.xml"))), "Data of world " + worldZone.getName());
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
View Full Code Here

            p.setProperty("z1", Integer.toString(areaZone.getArea().getLowPoint().getZ()));
            p.setProperty("x2", Integer.toString(areaZone.getArea().getHighPoint().getX()));
            p.setProperty("y2", Integer.toString(areaZone.getArea().getHighPoint().getY()));
            p.setProperty("z2", Integer.toString(areaZone.getArea().getHighPoint().getZ()));

            p.storeToXML(new BufferedOutputStream(new FileOutputStream(new File(path, "area.xml"))), "Data of area " + areaZone.getName());
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
View Full Code Here

     
      Properties envProp = new Properties();
      Map<String,String> getenv = System.getenv();
      for (String key : getenv.keySet())
        envProp.put(key, getenv.get(key));
      envProp.storeToXML(new FileOutputStream(_logLocation + "env.xml"),
        "Environment variables available to golden orb.");
     
      orbConf.writeXml(new FileOutputStream(_logLocation + "orb.xml"));
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

                physicalFile.getName());
        descriptorProps.put(
                DownloadDescriptorProperties.OriginatingUserId.toString(),
                generatingUser);

        descriptorProps.storeToXML(new FileOutputStream(descriptorFile),
                "Zanata Download Descriptor");

        // Generate the download Id based on the File name

        return descriptorFileName;
View Full Code Here

         }
      };
      sorted.putAll(properties);
      OutputStream stream = new FileOutputStream(outputFile);
      try {
         sorted.storeToXML(stream, null);
      } finally {
         stream.close();
      }
   }
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.