Package com.sun.akuma
Class JavaVMArguments
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.String>
-
- com.sun.akuma.JavaVMArguments
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.lang.String>
,java.util.Collection<java.lang.String>
,java.util.List<java.lang.String>
,java.util.RandomAccess
public class JavaVMArguments extends java.util.ArrayList<java.lang.String>
List of arguments for Java VM and application.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaVMArguments()
JavaVMArguments(java.util.Collection<? extends java.lang.String> c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JavaVMArguments
current()
Gets the process argument list of the current process.static void
main(java.lang.String[] args)
static JavaVMArguments
of(int pid)
Gets the process argument list of the specified process ID.void
removeSystemProperty(java.lang.String name)
void
removeTail(int n)
Removes the n items from the end.void
setSystemProperty(java.lang.String name, java.lang.String value)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
removeSystemProperty
public void removeSystemProperty(java.lang.String name)
-
setSystemProperty
public void setSystemProperty(java.lang.String name, java.lang.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 java.io.IOException
Gets the process argument list of the current process.- Throws:
java.io.IOException
-
of
public static JavaVMArguments of(int pid) throws java.io.IOException
Gets the process argument list of the specified process ID.- Parameters:
pid
- -1 to indicate the current process.- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
-