SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
  public static void setIn(InputStream in)  {    SecurityManager sm = Runtime.securityManager; // Be thread-safe.    if (sm != null)      sm.checkPermission(new RuntimePermission("setIO"));    VMSystem.setIn(in);    }