public class JavaVMArguments
extends java.util.ArrayList<java.lang.String>
| Constructor and Description |
|---|
JavaVMArguments() |
JavaVMArguments(java.util.Collection<? extends java.lang.String> c) |
| Modifier and Type | Method and 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) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic JavaVMArguments()
public JavaVMArguments(java.util.Collection<? extends java.lang.String> c)
public void removeSystemProperty(java.lang.String name)
public void setSystemProperty(java.lang.String name,
java.lang.String value)
public void removeTail(int n)
public static JavaVMArguments current() throws java.io.IOException
java.io.IOExceptionpublic static JavaVMArguments of(int pid) throws java.io.IOException
pid - -1 to indicate the current process.java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2012. All Rights Reserved.