com.sun.akuma
Class JavaVMArguments
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<String>
com.sun.akuma.JavaVMArguments
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess
public class JavaVMArguments
- extends ArrayList<String>
List of arguments for Java VM and application.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
JavaVMArguments
public JavaVMArguments()
JavaVMArguments
public JavaVMArguments(Collection<? extends String> c)
removeSystemProperty
public void removeSystemProperty(String name)
setSystemProperty
public void setSystemProperty(String name,
String value)
removeTail
public void removeTail(int n)
- Removes the n items from the end.
Useful for removing all the Java arguments to rebuild them.
current
public static JavaVMArguments current()
throws IOException
- Gets the process argument list of the current process.
- Throws:
IOException
of
public static JavaVMArguments of(int pid)
throws IOException
- Gets the process argument list of the specified process ID.
- Parameters:
pid - -1 to indicate the current process.
- Throws:
IOException
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.