websphinx
Class SecurityPolicy

java.lang.Object
  |
  +--websphinx.SecurityPolicy
Direct Known Subclasses:
Netscape4Policy

public class SecurityPolicy
extends java.lang.Object


Field Summary
private  java.io.File tempDir
           
private  java.util.Vector temps
           
private static SecurityPolicy thePolicy
           
 
Constructor Summary
SecurityPolicy()
           
 
Method Summary
 void deleteAllTempFiles()
           
private static SecurityPolicy findPolicy()
           
static SecurityPolicy getPolicy()
           
 java.io.File getTemporaryDirectory()
           
 void makeDir(java.io.File file)
           
 java.io.File makeTemporaryFile(java.lang.String basename, java.lang.String extension)
           
 java.net.URLConnection openConnection(Link link)
           
 java.net.URLConnection openConnection(java.net.URL url)
           
 java.io.InputStream readFile(java.io.File file)
           
 java.io.RandomAccessFile readWriteFile(java.io.File file)
           
 java.io.OutputStream writeFile(java.io.File file, boolean append)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

tempDir

private java.io.File tempDir

temps

private java.util.Vector temps

thePolicy

private static SecurityPolicy thePolicy
Constructor Detail

SecurityPolicy

public SecurityPolicy()
Method Detail

openConnection

public java.net.URLConnection openConnection(java.net.URL url)
                                      throws java.io.IOException

openConnection

public java.net.URLConnection openConnection(Link link)
                                      throws java.io.IOException

readFile

public java.io.InputStream readFile(java.io.File file)
                             throws java.io.IOException

writeFile

public java.io.OutputStream writeFile(java.io.File file,
                                      boolean append)
                               throws java.io.IOException

readWriteFile

public java.io.RandomAccessFile readWriteFile(java.io.File file)
                                       throws java.io.IOException

makeDir

public void makeDir(java.io.File file)
             throws java.io.IOException

getTemporaryDirectory

public java.io.File getTemporaryDirectory()

makeTemporaryFile

public java.io.File makeTemporaryFile(java.lang.String basename,
                                      java.lang.String extension)

deleteAllTempFiles

public void deleteAllTempFiles()

findPolicy

private static SecurityPolicy findPolicy()

getPolicy

public static SecurityPolicy getPolicy()