websphinx
Class Netscape4Policy

java.lang.Object
  |
  +--websphinx.SecurityPolicy
        |
        +--websphinx.Netscape4Policy

public class Netscape4Policy
extends SecurityPolicy


Fields inherited from class websphinx.SecurityPolicy
tempDir, temps, thePolicy
 
Constructor Summary
Netscape4Policy()
           
 
Method Summary
private  boolean isLocalURL(java.net.URL url)
           
 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 websphinx.SecurityPolicy
deleteAllTempFiles, findPolicy, getPolicy, getTemporaryDirectory
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Netscape4Policy

public Netscape4Policy()
Method Detail

isLocalURL

private boolean isLocalURL(java.net.URL url)

openConnection

public java.net.URLConnection openConnection(java.net.URL url)
                                      throws java.io.IOException
Overrides:
openConnection in class SecurityPolicy

openConnection

public java.net.URLConnection openConnection(Link link)
                                      throws java.io.IOException
Overrides:
openConnection in class SecurityPolicy

readFile

public java.io.InputStream readFile(java.io.File file)
                             throws java.io.IOException
Overrides:
readFile in class SecurityPolicy

writeFile

public java.io.OutputStream writeFile(java.io.File file,
                                      boolean append)
                               throws java.io.IOException
Overrides:
writeFile in class SecurityPolicy

readWriteFile

public java.io.RandomAccessFile readWriteFile(java.io.File file)
                                       throws java.io.IOException
Overrides:
readWriteFile in class SecurityPolicy

makeDir

public void makeDir(java.io.File file)
             throws java.io.IOException
Overrides:
makeDir in class SecurityPolicy

makeTemporaryFile

public java.io.File makeTemporaryFile(java.lang.String basename,
                                      java.lang.String extension)
Overrides:
makeTemporaryFile in class SecurityPolicy