|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.security.Access
wt.security.FileAccess
Class that provides wrappers to priviledged file methods using
the wt.security package. This allows applets to perform file
operations that are typically restricted by the sandbox.
Supported API: true
Field Summary |
Fields inherited from class wt.security.Access |
|
Constructor Summary | |
FileAccess()
|
Method Summary | |
boolean |
canRead(File file)
Wrapper for File.canRead() |
(package private) boolean |
canRead0(File file)
|
boolean |
canWrite(File file)
Wrapper for File.canWrite() |
(package private) boolean |
canWrite0(File file)
|
boolean |
delete(File file)
Wrapper for File.delete() |
(package private) boolean |
delete0(File file)
|
boolean |
exists(File file)
Wrapper for File.exists() |
(package private) boolean |
exists0(File file)
|
void |
FileDialog_setDirectory(FileDialog dialog,
String directory)
Wrapper for FileDialog.setDirectory(). |
(package private) void |
FileDialog_setDirectory0(FileDialog dialog,
String directory)
|
void |
FileDialog_setFile(FileDialog dialog,
String filename)
Wrapper for FileDialog.setFile(). |
(package private) void |
FileDialog_setFile0(FileDialog dialog,
String filename)
|
void |
FileDialog_show(FileDialog dialog)
Wrapper for FileDialog.show(). |
(package private) void |
FileDialog_show0(FileDialog dialog)
|
boolean |
fileEquals(File file0,
File file1)
Wrapper for File.equals() |
(package private) boolean |
fileEquals0(File file0,
File file1)
|
String |
getAbsolutePath(File file)
Wrapper for File.getAbsolutePath() |
(package private) String |
getAbsolutePath0(File file)
|
String |
getCanonicalPath(File file)
Wrapper for File.getCanonicalPath() |
(package private) String |
getCanonicalPath0(File file)
|
static FileAccess |
getFileAccess()
Get instance of FileAccess . |
static FileAccess |
getFileAccess(Frame parentFrame)
Get instance of FileAccess . |
FileInputStream |
getFileInputStream(File file)
Wrapper for FileInputStream constructor. |
FileInputStream |
getFileInputStream(FileDescriptor file)
Wrapper for FileInputStream constructor. |
FileInputStream |
getFileInputStream(String file)
Wrapper for FileInputStream constructor. |
(package private) FileInputStream |
getFileInputStream0(File file)
|
(package private) FileInputStream |
getFileInputStream0(FileDescriptor file)
|
(package private) FileInputStream |
getFileInputStream0(String file)
|
FileOutputStream |
getFileOutputStream(File file)
Wrapper for FileOutputStream constructor. |
FileOutputStream |
getFileOutputStream(FileDescriptor file)
Wrapper for FileOutputStream constructor. |
FileOutputStream |
getFileOutputStream(String file)
Wrapper for FileOutputStream constructor. |
FileOutputStream |
getFileOutputStream(String file,
boolean append)
Wrapper for FileOutputStream constructor. |
(package private) FileOutputStream |
getFileOutputStream0(File file)
|
(package private) FileOutputStream |
getFileOutputStream0(FileDescriptor file)
|
(package private) FileOutputStream |
getFileOutputStream0(String file)
|
(package private) FileOutputStream |
getFileOutputStream0(String file,
boolean append)
|
String |
getParent(File file)
Wrapper for File.getParent() |
(package private) String |
getParent0(File file)
|
File |
getParentDirectory(FileSystemView view,
File file)
|
(package private) File |
getParentDirectory0(FileSystemView view,
File file)
|
boolean |
isAbsolute(File file)
Wrapper for File.isAbsolute() |
(package private) boolean |
isAbsolute0(File file)
|
boolean |
isDirectory(File file)
Wrapper for File.isDirectory() |
(package private) boolean |
isDirectory0(File file)
|
boolean |
isFile(File file)
Wrapper for File.isFile() |
(package private) boolean |
isFile0(File file)
|
protected void |
JFileChooser_setCurrentDirectory(WTJFileChooser jfc,
File dir)
Wrapper for JFileChooser.setCurrentDirectory(). |
(package private) void |
JFileChooser_setCurrentDirectory0(WTJFileChooser jfc,
File dir)
|
void |
JFileChooser_setSelectedFile(WTJFileChooser jfc,
File file)
Wrapper for JFileChooser.setSelectedFile(). |
(package private) void |
JFileChooser_setSelectedFile0(WTJFileChooser jfc,
File file)
|
void |
JFileChooser_setSelectedFiles(WTJFileChooser jfc,
File[] file)
Wrapper for JFileChooser.setSelectedFiles(). |
(package private) void |
JFileChooser_setSelectedFiles0(WTJFileChooser jfc,
File[] file)
|
protected int |
JFileChooser_showDialog(WTJFileChooser jfc,
Component parent,
String text)
Wrapper for JFileChooser.showDialog(). |
(package private) int |
JFileChooser_showDialog0(WTJFileChooser jfc,
Component parent,
String text)
|
long |
lastModified(File file)
Wrapper for File.lastModified() |
(package private) long |
lastModified0(File file)
|
long |
length(File file)
Wrapper for File.length() |
(package private) long |
length0(File file)
|
String[] |
list(File file)
Wrapper for File.list() |
(package private) String[] |
list0(File file)
|
File[] |
listFiles(File file)
Wrapper for File.listFiles() |
(package private) File[] |
listFiles0(File file)
|
boolean |
mkdir(File file)
Wrapper for File.mkdir() |
(package private) boolean |
mkdir0(File file)
|
boolean |
mkdirs(File file)
Wrapper for File.mkdirs() |
(package private) boolean |
mkdirs0(File file)
|
FileDialog |
newFileDialog(Frame frame)
Wrapper for new FileDialog(). |
(package private) FileDialog |
newFileDialog0(Frame frame)
|
JFileChooser |
newJFileChooser()
Wrapper for new JFileChooser(). |
JFileChooser |
newJFileChooser(File currentDirectory)
Wrapper for new JFileChooser(File). |
(package private) WTJFileChooser |
newJFileChooser0()
|
(package private) WTJFileChooser |
newJFileChooser0(File currentDirectory)
|
boolean |
renameTo(File from,
File to)
Wrapper for File.renameTo() |
(package private) boolean |
renameTo0(File from,
File to)
|
Methods inherited from class wt.security.Access |
checkAccess, checkAccessAll, checkClass, checkClass, checkClass, getAccessImpl, setParentFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileAccess()
Method Detail |
public static FileAccess getFileAccess(Frame parentFrame)
FileAccess
. This instance can then be used
to perform file operation that are typically restricted by the sandbox.
parentFrame
- the parent frame for security dialog boxes that may be
presented
public static FileAccess getFileAccess()
FileAccess
. This instance can then be used
to perform file operation that are typically restricted by the sandbox.
public FileInputStream getFileInputStream(String file) throws WTSecurityException, FileNotFoundException
file
- the filename for the file to be opened for the input stream
WTSecurityException
FileNotFoundException
FileInputStream getFileInputStream0(String file) throws WTSecurityException, FileNotFoundException
WTSecurityException
FileNotFoundException
public FileInputStream getFileInputStream(File file) throws WTSecurityException, FileNotFoundException
file
- the file to be opened for the input stream
WTSecurityException
FileNotFoundException
FileInputStream getFileInputStream0(File file) throws WTSecurityException, FileNotFoundException
WTSecurityException
FileNotFoundException
public FileInputStream getFileInputStream(FileDescriptor file) throws WTSecurityException
file
- the file descriptor of the file to be opened for the input stream
WTSecurityException
FileInputStream getFileInputStream0(FileDescriptor file) throws WTSecurityException
WTSecurityException
public FileOutputStream getFileOutputStream(File file) throws WTSecurityException, IOException
file
- the file to be opened for the output stream
WTSecurityException
IOException
FileOutputStream getFileOutputStream0(File file) throws WTSecurityException, IOException
WTSecurityException
IOException
public FileOutputStream getFileOutputStream(FileDescriptor file) throws WTSecurityException
file
- the file descriptor to the file to be opened for the output stream
WTSecurityException
FileOutputStream getFileOutputStream0(FileDescriptor file) throws WTSecurityException
WTSecurityException
public FileOutputStream getFileOutputStream(String file) throws WTSecurityException, IOException
file
- the filename to the file to be opened for the output stream
WTSecurityException
IOException
FileOutputStream getFileOutputStream0(String file) throws WTSecurityException, IOException
WTSecurityException
IOException
public FileOutputStream getFileOutputStream(String file, boolean append) throws WTSecurityException, IOException
file
- the filename to the file to be opened for the output streamappend
- boolean stating if the file should be appended to
WTSecurityException
IOException
FileOutputStream getFileOutputStream0(String file, boolean append) throws WTSecurityException, IOException
WTSecurityException
IOException
public boolean exists(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean exists0(File file) throws WTSecurityException
WTSecurityException
public String[] list(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
String[] list0(File file) throws WTSecurityException
WTSecurityException
public File[] listFiles(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
File[] listFiles0(File file) throws WTSecurityException
WTSecurityException
public boolean isFile(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean isFile0(File file) throws WTSecurityException
WTSecurityException
public boolean isDirectory(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean isDirectory0(File file) throws WTSecurityException
WTSecurityException
public boolean isAbsolute(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean isAbsolute0(File file) throws WTSecurityException
WTSecurityException
public long lastModified(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
long lastModified0(File file) throws WTSecurityException
WTSecurityException
public long length(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
long length0(File file) throws WTSecurityException
WTSecurityException
public boolean mkdir(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean mkdir0(File file) throws WTSecurityException
WTSecurityException
public boolean mkdirs(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean mkdirs0(File file) throws WTSecurityException
WTSecurityException
public boolean renameTo(File from, File to) throws WTSecurityException
from
- the file that is being renamedto
- the file that from is being renamed to
WTSecurityException
boolean renameTo0(File from, File to) throws WTSecurityException
WTSecurityException
public boolean delete(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean delete0(File file) throws WTSecurityException
WTSecurityException
public String getCanonicalPath(File file) throws WTSecurityException, IOException
file
- the file the operation is being performed upon
WTSecurityException
IOException
String getCanonicalPath0(File file) throws WTSecurityException, IOException
WTSecurityException
IOException
public String getParent(File file) throws WTSecurityException, IOException
file
- the file the operation is being performed upon
WTSecurityException
IOException
String getParent0(File file) throws WTSecurityException, IOException
WTSecurityException
IOException
public File getParentDirectory(FileSystemView view, File file) throws WTSecurityException
WTSecurityException
File getParentDirectory0(FileSystemView view, File file) throws WTSecurityException
WTSecurityException
public String getAbsolutePath(File file) throws WTSecurityException, IOException
file
- the file the operation is being performed upon
WTSecurityException
IOException
String getAbsolutePath0(File file) throws WTSecurityException, IOException
WTSecurityException
IOException
public boolean canRead(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean canRead0(File file) throws WTSecurityException
WTSecurityException
public boolean canWrite(File file) throws WTSecurityException
file
- the file the operation is being performed upon
WTSecurityException
boolean canWrite0(File file) throws WTSecurityException
WTSecurityException
public boolean fileEquals(File file0, File file1) throws WTSecurityException
WTSecurityException
boolean fileEquals0(File file0, File file1) throws WTSecurityException
WTSecurityException
public FileDialog newFileDialog(Frame frame) throws WTSecurityException
frame
- the parent frame for this newly constructed FileDialog
WTSecurityException
FileDialog newFileDialog0(Frame frame) throws WTSecurityException
WTSecurityException
public void FileDialog_show(FileDialog dialog) throws WTSecurityException
WTSecurityException
void FileDialog_show0(FileDialog dialog) throws WTSecurityException
WTSecurityException
public void FileDialog_setDirectory(FileDialog dialog, String directory) throws WTSecurityException
WTSecurityException
void FileDialog_setDirectory0(FileDialog dialog, String directory) throws WTSecurityException
WTSecurityException
public void FileDialog_setFile(FileDialog dialog, String filename) throws WTSecurityException
WTSecurityException
void FileDialog_setFile0(FileDialog dialog, String filename) throws WTSecurityException
WTSecurityException
public JFileChooser newJFileChooser() throws WTSecurityException
WTSecurityException
WTJFileChooser newJFileChooser0() throws WTSecurityException
WTSecurityException
public JFileChooser newJFileChooser(File currentDirectory) throws WTSecurityException
WTSecurityException
WTJFileChooser newJFileChooser0(File currentDirectory) throws WTSecurityException
WTSecurityException
protected int JFileChooser_showDialog(WTJFileChooser jfc, Component parent, String text) throws WTSecurityException
parent
- the parent component of the dialogtext
- the text of the ApproveButton
WTSecurityException
int JFileChooser_showDialog0(WTJFileChooser jfc, Component parent, String text) throws WTSecurityException
WTSecurityException
protected void JFileChooser_setCurrentDirectory(WTJFileChooser jfc, File dir) throws WTSecurityException
dir
- the current directory to point to
WTSecurityException
void JFileChooser_setCurrentDirectory0(WTJFileChooser jfc, File dir) throws WTSecurityException
WTSecurityException
public void JFileChooser_setSelectedFile(WTJFileChooser jfc, File file) throws WTSecurityException
file
- the file currently selected
WTSecurityException
void JFileChooser_setSelectedFile0(WTJFileChooser jfc, File file) throws WTSecurityException
WTSecurityException
public void JFileChooser_setSelectedFiles(WTJFileChooser jfc, File[] file) throws WTSecurityException
file
- the file currently selected
WTSecurityException
void JFileChooser_setSelectedFiles0(WTJFileChooser jfc, File[] file) throws WTSecurityException
WTSecurityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |