Examples of OS


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

Examples of com.softwaremill.common.cdi.objectservice.OS

        this.serviceClass = serviceClass;
    }

    @Override
    public OS f(Object obj) {
        OS objectService = (OS) extension.serviceForObject(obj.getClass(), serviceClass);
        //noinspection unchecked
        objectService.setServiced(obj);
        return objectService;
    }
View Full Code Here

Examples of eu.bges.SysUtil.OS

   * @return an unique id identifying the computer based on it's hardware if a
   *         supported operating system (Windows, Linux, Mac OSX) is
   *         installed; null otherwise
   */
  private static String getStrongComputerUUID() {
    final OS currOs = SysUtil.getOS();
    final String uuid;
    switch (currOs) {
    case WINDOWS:
      uuid = getStrongComputerUUIDwindows();
      break;
View Full Code Here

Examples of limelight.os.OS

      return;
    }
    System.setProperty("os.name", "Mac OS X");
    Boot.configureOS(context);

    OS os = Context.instance().os;
    assertEquals("limelight.os.darwin.DarwinOS", os.getClass().getName());
  }
View Full Code Here

Examples of limelight.os.OS

  @Test
  public void windowsXPOS() throws Exception
  {
    System.setProperty("os.name", "Windows XP");
    Boot.configureOS(context);
    OS os = Context.instance().os;
    assertEquals("limelight.os.win32.Win32OS", os.getClass().getName());
  }
View Full Code Here

Examples of limelight.os.OS

  @Test
  public void windowsVistaOS() throws Exception
  {
    System.setProperty("os.name", "Windows Vista");
    Boot.configureOS(context);
    OS os = Context.instance().os;
    assertEquals("limelight.os.win32.Win32OS", os.getClass().getName());
  }
View Full Code Here

Examples of limelight.os.OS

  public void unsupportedOS() throws Exception
  {
    System.setProperty("os.name", "Something Unsupported");
    Boot.configureOS(context);

    OS os = Context.instance().os;
    assertEquals(UnsupportedOS.class, os.getClass());
  }
View Full Code Here

Examples of org.redline_rpm.header.Os

   
    RpmType type = RpmType.valueOf( editor.getValue( "rpm:type", BINARY.toString()));
    builder.setType( type);
   
    Architecture arch = Architecture.valueOf( editor.getValue( "rpm:architecture", NOARCH.toString()));
    Os os = Os.valueOf( editor.getValue( "rpm:os", LINUX.toString()));
    builder.setPlatform( arch, os);
   
    builder.setSummary( editor.getValue( "rpm:summary/text()"));
    builder.setDescription( editor.getValue( "rpm:description/text()"));
    builder.setBuildHost( editor.getValue( "rpm:host/text()", InetAddress.getLocalHost().getHostName()));
View Full Code Here

Examples of ua_parser.OS

    }

    if (cacheOS == null) {
      cacheOS = new LRUMap(CACHE_SIZE);
    }
    OS os = cacheOS.get(agentString);
    if (os != null) {
      return os;
    }
    os = super.parseOS(agentString);
    cacheOS.put(agentString, os);
View Full Code Here

Examples of ua_parser.OS

            return null;
        }

        try {
            String agentString = (String) input.get(0);
            OS os = parser.parseOS(agentString);
            if (os == null) {
                return null;
            }

            Tuple output = TupleFactory.getInstance().newTuple(5);
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.