uk.ac.mrc.hgmp.embreo.filemgr
Class EmbreoFileList

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.filemgr.EmbreoFileList

public class EmbreoFileList
extends java.lang.Object


Constructor Summary
EmbreoFileList(EmbreoParams mysettings, java.lang.String fileRoot, java.lang.String dir)
          Retrieves a directory listing from an embreo server.
 
Method Summary
 void addDirectoriesToList(javax.swing.DefaultListModel l)
          Adds the directories to a list
 void addFilesToList(javax.swing.DefaultListModel l)
          Adds the files to a list
 java.util.Vector dirVector()
          Gets the list of directories as a Vector
 java.util.Vector fileVector()
          Gets the list of files as a Vector
 java.lang.String getDirectories()
          Gets the list of directories as a String
 java.lang.String getFiles()
          Gets the list of files as a String
 boolean isDirectory(java.lang.String d)
          Gets whether this name is a directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoFileList

public EmbreoFileList(EmbreoParams mysettings,
                      java.lang.String fileRoot,
                      java.lang.String dir)
               throws EmbreoAuthException
Retrieves a directory listing from an embreo server. The directory listing consists of a hash with two entries, a full list of files (including directories) and a list of those files that are directories.

Parameters:
mysettings - EmbreoParams defining server parameters
fileRoot - Which filesystem root we're using
dir - The directory to list files in, relative to fileRoot
Throws:
EmbreoAuthException - If authentication fails
Method Detail

getFiles

public java.lang.String getFiles()
Gets the list of files as a String

Returns:
The list of files as a String, one file per line

getDirectories

public java.lang.String getDirectories()
Gets the list of directories as a String

Returns:
The list of directories as a String, one directory per line

fileVector

public java.util.Vector fileVector()
Gets the list of files as a Vector

Returns:
The list of files as a Vector

dirVector

public java.util.Vector dirVector()
Gets the list of directories as a Vector

Returns:
The list of directories as a Vector

addFilesToList

public void addFilesToList(javax.swing.DefaultListModel l)
Adds the files to a list


addDirectoriesToList

public void addDirectoriesToList(javax.swing.DefaultListModel l)
Adds the directories to a list


isDirectory

public boolean isDirectory(java.lang.String d)
Gets whether this name is a directory

Returns:
true if it's a directory (in other words, its in the list of directories), else returns false