Example usage for java.util Properties list

List of usage examples for java.util Properties list

Introduction

In this page you can find the example usage for java.util Properties list.

Prototype


public void list(PrintWriter out) 

Source Link

Document

Prints this property list out to the specified output stream.

Usage

From source file:Main.java

public static void main(String[] args) {

    Properties p = System.getProperties();
    p.list(System.out);
}

From source file:SystemApp.java

public static void main(String args[]) {
    long time = System.currentTimeMillis();
    System.out.println(time);/*from w  w  w.  j a v a 2 s .c o m*/
    Properties p = System.getProperties();
    p.list(System.out);
    System.exit(13);
}

From source file:List.java

public static void main(String args[]) throws Exception {
    Properties p = System.getProperties();
    p.list(System.out);
    FileOutputStream fos = new FileOutputStream("sys.out");
    p.store(fos, null);//from  w w w. j  a  v a  2  s.c  om
    fos.close();
    Map map = new TreeMap(p);
    System.out.println(map);
}

From source file:MainClass.java

public static void main(String[] args) {
    java.util.Properties properties = System.getProperties();
    properties.list(System.out);
}

From source file:MainClass.java

public static void main(String[] args) {

    java.util.Properties properties = System.getProperties();
    properties.list(System.out);

}

From source file:MainClass.java

public static void main(String[] args) {
    Properties properties = System.getProperties();
    properties.list(System.out);
}

From source file:PropView.java

public static void main(String args[]) throws Exception {
    Properties properties = System.getProperties();
    properties.list(System.out);

    FileInputStream in = null;//  w  ww.ja v  a2s .c  o  m

    in = new FileInputStream(args[0]);
    properties.load(in);

    System.getProperties().list(System.out);
    System.out.println("\nValue of local.animal.defined is " + Boolean.getBoolean("local.animal.defined"));
    System.out.println("\nValue of local.animal.legcount is " + Integer.getInteger("local.animal.legcount"));
}

From source file:MainClass.java

public static void main(String args[]) throws Exception {
    Properties p = new Properties();
    p.load(new FileInputStream("test.txt"));
    p.list(System.out);
}

From source file:MainClass.java

public static void main(String args[]) throws Exception {
    Properties p = new Properties();
    p.load(new FileInputStream("colon.txt"));
    p.list(System.out);
}

From source file:Main.java

public static void main(String[] args) {
    Properties prop = System.getProperties();
    System.out.println("Printing all System properties");
    prop.list(System.out);
}