THE PACKAGE JAVA.LANG
java.lang.SecurityManager
20.17
20.17.18
public void checkRead(int fd)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if creating an input stream using the specified file descriptor is not permitted.
This method is invoked for the current security manager ( 20.18.4) by one
constructor for
java.io.FileInputStream
 ( 22.4.3).
The
checkRead
 method defined by class
SecurityManager
 always throws a
SecurityException
. A subclass must override this method if creating an input
stream from an existing file descriptor is to be permitted with a security manager
installed.
20.17.19
public void checkRead(String file)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if reading the specified file or directory, or examining associated file system infor 
mation, or testing for its existence, is not permitted.
This method is invoked for the current security manager ( 20.18.4) by two
constructors for
java.io.FileInputStream
 ( 22.4.1,  22.4.2); by two con 
structors for
java.io.RandomAccessFile
 ( 22.23.1,  22.23.2); and by methods
exists
 ( 22.24.16),
canRead
 ( 22.24.17),
isFile
 ( 22.24.19),
isDirectory
( 22.24.20),
lastModified
 ( 22.24.21),
length
 ( 22.24.22),
list
 with no argu 
ments ( 22.24.25), and
list
 with one argument ( 22.24.26) of the class
java.io.File
.
The
checkRead
 method defined by class
SecurityManager
 always throws a
SecurityException
. A subclass must override this method if read access to a
file is to be permitted with a security manager installed.
20.17.20
public void checkWrite(int fd)
throws SecurityException
The general contract of this method is that it should throw a
SecurityException
if creating an output stream using the specified file descriptor is not permitted.
This method is invoked for the current security manager ( 20.18.4) by one
constructor for
java.io.FileOutputStream
 ( 22.16.3).
The
checkWrite
 method defined by class
SecurityManager
 always throws
a
SecurityException
. A subclass must override this method if creating an out 
put stream from an existing file descriptor is to be permitted with a security man 
ager installed.
575






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved