S-PLUS Connect/Java v1.0

com.insightful.splus.client
Class ServerFileSystemView

java.lang.Object
  extended byjavax.swing.filechooser.FileSystemView
      extended bycom.insightful.splus.client.ServerFileSystemView

public class ServerFileSystemView
extends FileSystemView

Object representing the file system on the server.
This supports viewing the server file system in a JFileChooser displayed on a client in client/server mode. It performs file system queries on the server via S-PLUS commands.


Constructor Summary
ServerFileSystemView()
          Create the ServerFileSystemView.
ServerFileSystemView(ClientUtilities utils)
          Create the ServerFileSystemView.
 
Method Summary
 ServerFile[] clientSideFileInfoQuery(String dirName, boolean useFileHiding)
           
 ServerFile[] clientSideFileInfoQuery(String fileOrDir, boolean lookInDir, boolean useFileHiding)
           
 File createFileObject(File dir, String filename)
          Create a ServerFile.
 File createFileObject(String path)
          Create a ServerFile.
protected  File createFileSystemRoot(File f)
           
 File createNewFolder(File containingDir)
          Create a directory on the server.
 File getChild(File parent, String fileName)
           
 File getDefaultDirectory()
           
 File[] getFiles(File dir, boolean useFileHiding)
          Get an array of ServerFile objects for the files in a directory.
 File getHomeDirectory()
           
 File getParentDirectory(File dir)
           
 File[] getRoots()
           
 String getSystemDisplayName(File f)
           
 Icon getSystemIcon(File f)
           
 String getSystemTypeDescription(File f)
           
 boolean isComputerNode(File dir)
           
 boolean isDrive(File dir)
           
 boolean isFileSystem(File f)
           
 boolean isFileSystemRoot(File f)
           
 boolean isFloppyDrive(File f)
           
 boolean isHiddenFile(File f)
           
 boolean isParent(File folder, File file)
           
 boolean isRoot(File f)
           
 Boolean isTraversable(File f)
           
static String[] serverSideFileInfoQuery(String fileOrDir, boolean lookInDir, boolean useFileHiding)
           
 
Methods inherited from class javax.swing.filechooser.FileSystemView
getFileSystemView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerFileSystemView

public ServerFileSystemView()
Create the ServerFileSystemView.


ServerFileSystemView

public ServerFileSystemView(ClientUtilities utils)
Create the ServerFileSystemView.

Method Detail

createFileObject

public File createFileObject(String path)
Create a ServerFile.


createFileObject

public File createFileObject(File dir,
                             String filename)
Create a ServerFile.


createNewFolder

public File createNewFolder(File containingDir)
                     throws IOException
Create a directory on the server.

Throws:
IOException

getFiles

public File[] getFiles(File dir,
                       boolean useFileHiding)
Get an array of ServerFile objects for the files in a directory.


getHomeDirectory

public File getHomeDirectory()

getParentDirectory

public File getParentDirectory(File dir)

getRoots

public File[] getRoots()

isHiddenFile

public boolean isHiddenFile(File f)

isRoot

public boolean isRoot(File f)

createFileSystemRoot

protected File createFileSystemRoot(File f)

getChild

public File getChild(File parent,
                     String fileName)

getDefaultDirectory

public File getDefaultDirectory()

getSystemDisplayName

public String getSystemDisplayName(File f)

getSystemIcon

public Icon getSystemIcon(File f)

getSystemTypeDescription

public String getSystemTypeDescription(File f)

isComputerNode

public boolean isComputerNode(File dir)

isDrive

public boolean isDrive(File dir)

isFileSystem

public boolean isFileSystem(File f)

isFileSystemRoot

public boolean isFileSystemRoot(File f)

isFloppyDrive

public boolean isFloppyDrive(File f)

isParent

public boolean isParent(File folder,
                        File file)

isTraversable

public Boolean isTraversable(File f)

clientSideFileInfoQuery

public ServerFile[] clientSideFileInfoQuery(String dirName,
                                            boolean useFileHiding)

clientSideFileInfoQuery

public ServerFile[] clientSideFileInfoQuery(String fileOrDir,
                                            boolean lookInDir,
                                            boolean useFileHiding)

serverSideFileInfoQuery

public static String[] serverSideFileInfoQuery(String fileOrDir,
                                               boolean lookInDir,
                                               boolean useFileHiding)

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.