Examples of Printer


Examples of xtc.tree.Printer

  /** Hide the constructor. */
  private Platform() { /* Nothing to do. */ }

  /** Generate the current platform's configuration header. */
  public static void main(String[] args) {
    Printer printer = new
      Printer(new BufferedWriter(new OutputStreamWriter(System.out)));

    printer.p("#define OS \"").p(System.getProperty("os.name")).p(' ').
      p(System.getProperty("os.version")).pln('"');
    printer.p("#define ARCH \"").p(System.getProperty("os.arch")).pln('"');
    printer.flush();
  }
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.