Package com.mattc.argus.util.Utility

Examples of com.mattc.argus.util.Utility.OS


    Writer writer = null;
    Reader reader = null;
    String contents = null;
    String[] bits = null;
    String result = "";
    OS system = OS.get();
   
    if(system == OS.UNSUPPORTED){
      Notifications.error("Unsupported OS Detected! Install Will Still Continue as if OS was Unix-Based...");
      system = OS.UNIX;
    }
   
    Console.debug("eclipse-" + system.name() + OS.getArch() +".ini");
    try{
      writer = new StringWriter();
      reader = new BufferedReader(new InputStreamReader(new FileInputStream(new File(new File(".", "ini"),"eclipse-" + system.name() + OS.getArch() + ".ini"))));
      buffer = new char[1024];
     
      for(int c = reader.read(buffer) ; c > 0; c = reader.read(buffer))
        writer.write(buffer, 0, c);
     
View Full Code Here

TOP

Related Classes of com.mattc.argus.util.Utility.OS

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.