Package | Description |
---|---|
java.io | |
java.lang | |
java.lang.reflect | |
java.net | |
java.rmi | |
java.rmi.server | |
java.security |
Modifier and Type | Method and Description |
---|---|
boolean |
File.canRead() |
boolean |
File.canWrite() |
boolean |
File.createNewFile() |
static File |
File.createTempFile(String pre,
String suf,
File dir) |
boolean |
File.delete() |
void |
File.deleteOnExit() |
protected boolean |
ObjectOutputStream.enableReplaceObject(boolean enable) |
protected boolean |
ObjectInputStream.enableResolveObject(boolean enable) |
boolean |
File.exists() |
boolean |
File.isDirectory() |
boolean |
File.isFile() |
boolean |
File.isHidden() |
long |
File.lastModified() |
long |
File.length() |
String[] |
File.list() |
String[] |
File.list(FilenameFilter filter) |
File[] |
File.listFiles() |
File[] |
File.listFiles(FileFilter filter) |
File[] |
File.listFiles(FilenameFilter filter) |
boolean |
File.mkdir() |
boolean |
File.mkdirs() |
boolean |
File.renameTo(File dest) |
boolean |
File.setLastModified(long time) |
boolean |
File.setReadOnly() |
Constructor and Description |
---|
FileInputStream(File file) |
FileInputStream(FileDescriptor fdObj) |
FileInputStream(String path) |
FileOutputStream(File file) |
FileOutputStream(File file,
boolean append) |
FileOutputStream(FileDescriptor fdObj) |
FileOutputStream(String path) |
FileOutputStream(String path,
boolean append) |
ObjectOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkAccept(String host,
int port)
Checks whether the caller has permission to accept incoming connections.
|
void |
Thread.checkAccess()
checkAccess() checkes whether the SecurityManager (if any) objects
to our performing priviledged actions on this thread.
|
void |
ThreadGroup.checkAccess()
checkAccess()
checks that the current (calling) thread is allowed to modify this
ThreadGroup.
|
void |
SecurityManager.checkAccess(Thread t)
Checks whether the caller has permission to modify Thread t.
|
void |
SecurityManager.checkAccess(ThreadGroup g)
Checks whether the caller has permission to modify ThreadGroup g.
|
void |
SecurityManager.checkAwtEventQueueAccess()
Checks whether the caller has permission to access the AWT event queue.
|
void |
SecurityManager.checkConnect(String host,
int port)
Checks whether the caller has permission to connect to the given port.
|
void |
SecurityManager.checkConnect(String host,
int port,
Object context)
Checks whether the given context has permission to connect to the given port.
|
void |
SecurityManager.checkCreateClassLoader()
Checks whether the caller has permission to create a ClassLoader.
|
void |
SecurityManager.checkDelete(String file) |
void |
SecurityManager.checkExec(String cmd)
Checks whether the caller is allowed to execute the specified command.
|
void |
SecurityManager.checkExit(int status)
Checks whether the caller is allowed to exit the VM.
|
void |
SecurityManager.checkLink(String libname)
Checks whether the caller has permission to load library ``libname''.
|
void |
SecurityManager.checkListen(int port)
Checks whether the caller has permission to listen to the given port.
|
void |
SecurityManager.checkMemberAccess(Class cl,
int mtype)
Checks whether the caller has access to the declared members of ``cl''.
|
void |
SecurityManager.checkMulticast(InetAddress addr)
Checks whether the caller has permission to use IP Multicast.
|
void |
SecurityManager.checkMulticast(InetAddress addr,
byte ttl)
Checks whether the caller has permission to use IP Multicast.
|
void |
SecurityManager.checkPackageAccess(String packageName)
Checks whether the caller has access to the given package.
|
void |
SecurityManager.checkPackageDefinition(String packageName)
Checks whether the caller has permission to define classes in the given package.
|
void |
SecurityManager.checkPrintJobAccess()
Checks whether the caller has permission to initiate a print job.
|
void |
SecurityManager.checkPropertiesAccess()
Checks whether the caller has permission to read or modify the system properties as a whole.
|
void |
SecurityManager.checkPropertyAccess(String propname)
Checks whether the caller has permission to read the given system property.
|
void |
SecurityManager.checkRead(FileDescriptor fd)
Checks whether the caller has permission to read the file descriptor `fd'.
|
void |
SecurityManager.checkRead(String file)
Checks whether the caller has permission to read the file ``file''.
|
void |
SecurityManager.checkRead(String file,
Object context)
Checks whether the given context has permission to read the file ``file''.
|
void |
SecurityManager.checkSecurityAccess(String target)
Checks whether the caller has the SecurityPermission called ``target''.
|
void |
SecurityManager.checkSetFactory()
Checks whether the caller has permission to set the socket factories used by the java.net code.
|
void |
SecurityManager.checkSystemClipboardAccess()
Checks whether the caller has permission to access the AWT system clipboard.
|
boolean |
SecurityManager.checkTopLevelWindow(Object window)
Checks whether the caller is trusted to bring up the specified window.
|
void |
SecurityManager.checkWrite(FileDescriptor fd)
Checks whether the caller has permission to write to the file `fd'.
|
void |
SecurityManager.checkWrite(String file)
Checks whether the caller has permission to write to the file ``file''.
|
void |
ThreadGroup.destroy()
destroy()
deregisters this ThreadGroup and all its direct and indirect children
from their respective parents (thereby rendering them eligible for
garbage collection).
|
Process |
Runtime.exec(String command) |
Process |
Runtime.exec(String[] cmdarray) |
Process |
Runtime.exec(String[] cmdarray,
String[] envp) |
Process |
Runtime.exec(String[] cmdarray,
String[] envp,
File path) |
Process |
Runtime.exec(String command,
String[] envp) |
Process |
Runtime.exec(String command,
String[] envp,
File path) |
void |
Runtime.exit(int status)
Exit the VM, after running all shutdown hooks.
|
static void |
System.exit(int status) |
Constructor |
Class.getConstructor(Class[] parameterTypes)
Get this Class's public constructor with the given parameter types.
|
Constructor[] |
Class.getConstructors()
Return an array containing all this Class's public constructors.
|
Class[] |
Class.getDeclaredClasses()
Return an array of Class objects, one for every Class which is a declared in this Class as a member.
|
Constructor |
Class.getDeclaredConstructor(Class[] parameterTypes)
Get this Class's declared constructor with the given parameter types.
|
Constructor[] |
Class.getDeclaredConstructors()
Return an array containing all this Class's declared constructors.
|
Field |
Class.getDeclaredField(String fieldname)
Get this Class's declared field with the given name.
|
Field[] |
Class.getDeclaredFields()
Return an array containing all this Class's declared fields.
|
Method |
Class.getDeclaredMethod(String methodname,
Class[] parameterTypes)
Get this Class's public method with the given name and parameter types.
|
Method[] |
Class.getDeclaredMethods()
Return an array containing all this Class's declared methods.
|
Field |
Class.getField(String fieldname)
Get this Class's public field with the given name.
|
Field[] |
Class.getFields()
Return an array containing all this Class's public fields.
|
Method |
Class.getMethod(String methodname,
Class[] parameterTypes)
Get this Class's public method with the given name and parameter types.
|
Method[] |
Class.getMethods()
Return an array containing all this Class's public methods.
|
static Properties |
System.getProperties() |
static String |
System.getProperty(String key) |
static String |
System.getProperty(String key,
String defaults) |
void |
Runtime.halt(int status) |
void |
ThreadGroup.interrupt()
interrupt()
This deprecated method calls the interrupt() method of every thread in
this group and in all of its child groups, recursively.
|
void |
Runtime.load(String libname) |
static void |
System.load(String libname) |
void |
Runtime.loadLibrary(String libname) |
static void |
System.loadLibrary(String libname) |
void |
Thread.resume()
resume0() performs a checkAccess() before calling resume0().
|
void |
ThreadGroup.resume()
resume()
This deprecated method calls the resume() method of every thread in
this group and in all of its child groups, recursively.
|
void |
Thread.setDaemon(boolean on)
* setDaemon() first calls checkAccess() and then invokes setDaemon0() * -
unless the thread is currently active, in which case *
IllegalThreadStateException is thrown.
|
void |
ThreadGroup.setDaemon(boolean daemon)
setDaemon()
checks the caller's permissions before setting the `daemon' flag.
|
void |
ThreadGroup.setMaxPriority(int newMaxPriority)
setMaxPriority(int newMaxPriority)
checks its argument and the caller's permissions befor calling setMaxPriority0.
|
void |
Thread.setName(String name)
setName(String name) invokes checkAccess() before calling setName0(name).
|
void |
Thread.setPriority(int newPriority)
setPriority(int newPriority) first calls checkAccess(), and then
calls setPriority0() to set the priority to the lesser of
- the value requested; or
- the maxPriority of the parent ThreadGroup.
|
static void |
System.setProperties(Properties props) |
static String |
System.setProperty(String key,
String defaults) |
static void |
System.setSecurityManager(SecurityManager sm) |
void |
Thread.stop()
stop() performs an access check and then throws a ThreadDeath in
the victim thread.
|
void |
ThreadGroup.stop()
stop()
This deprecated method calls the stop() method of every thread in
this group and in all of its child groups, recursively.
|
void |
Thread.stop(Throwable thr)
stop(Throwable thr) performs an access check and then throws "thr" in
the victim thread.
|
void |
Thread.suspend()
suspend0() performs a checkAccess() before calling suspend0().
|
void |
ThreadGroup.suspend()
suspend()
This deprecated method calls the suspend() method of every thread in
this group and in all of its child groups, recursively.
|
Constructor and Description |
---|
ClassLoader()
Any ClassLoader created using the default constructor will
have as its parent the system ClassLoader.
|
ClassLoader(ClassLoader parent)
This new-to-Java-1.2 constructor allows the parent to be
specified by the caller.
|
SecurityManager()
Default constructor, public in Java2.
|
Thread(ThreadGroup group,
Runnable runObject)
Thread(ThreadGroup group,Runnable runObject)
--> Thread(ThreadGroup,Runnable,String) with null String
|
Thread(ThreadGroup group,
Runnable runObject,
String myname)
Thread(ThreadGroup group, Runnable runObject, String name)
--> name as specified, or "Thread-
|
Thread(ThreadGroup group,
Runnable runObject,
String name,
long stacksize)
Thread(ThreadGroup group, Runnable runObject, String name, long stacksize)
--> Thread(ThreadGroup group, Runnable runObject, String name),
i.e.
|
Thread(ThreadGroup group,
String name)
Thread(ThreadGroup group,String name)
--> name as specified, or "Thread-
|
ThreadGroup(String name)
Constructor ThreadGroup(String)
- parent is the ThreadGroup of which the current (calling) Thread
is a member.
|
ThreadGroup(ThreadGroup parent,
String name)
Constructor ThreadGroup(ThreadGroup parent, String name)
constructs a ThreadGroup with the given name and parent.
|
Modifier and Type | Method and Description |
---|---|
static void |
AccessibleObject.setAccessible(AccessibleObject[] array,
boolean flag) |
void |
AccessibleObject.setAccessible(boolean flag) |
Modifier and Type | Method and Description |
---|---|
void |
DatagramSocket.connect(InetAddress address,
int port)
* Connects the datagramsocket to a remote address.
|
void |
DatagramSocket.connect(SocketAddress sa)
* Connects the datagramsocket to a remote address.
|
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls) |
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls,
ClassLoader parent) |
Constructor and Description |
---|
DatagramSocket() |
DatagramSocket(int port) |
DatagramSocket(int port,
InetAddress laddr) |
URLClassLoader(URL[] urls) |
URLClassLoader(URL[] urls,
ClassLoader parent) |
URLClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory) |
Modifier and Type | Class and Description |
---|---|
class |
RMISecurityException |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
RMIClassLoader.getClassLoader(String codebase) |
Modifier and Type | Class and Description |
---|---|
class |
AccessControlException |
Modifier and Type | Method and Description |
---|---|
void |
Permissions.add(Permission permission)
Method add(Permission) adds the specified Permission to the
collection appropriate to the class of the Permission.
|
void |
Guard.checkGuard(Object object) |
void |
Permission.checkGuard(Object object) |
Object |
GuardedObject.getObject() |
Constructor and Description |
---|
SecureClassLoader() |
SecureClassLoader(ClassLoader parent) |