websphinx
Class Access

java.lang.Object
  |
  +--websphinx.Access
Direct Known Subclasses:
Netscape4Access

public class Access
extends java.lang.Object


Constructor Summary
Access()
           
 
Method Summary
 void deleteAllTempFiles()
           
static Access getAccess()
           
 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)
           
static void setAccess(Access access)
           
 java.io.OutputStream writeFile(java.io.File file, boolean append)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Access

public Access()
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()

getAccess

public static Access getAccess()

setAccess

public static void setAccess(Access access)