All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.starla.lite.SMBCoreDiskSession

java.lang.Object
   |
   +----com.starla.lite.SMBSession
           |
           +----com.starla.lite.SMBDiskSession
                   |
                   +----com.starla.lite.SMBCoreDiskSession

public class SMBCoreDiskSession
extends SMBDiskSession
SMB core disk session class


Method Index

 o CloseSession()
Close this connection with the remote server share.
 o CreateDirectory(String)
Createa new directory on the remote file server.
 o DeleteDirectory(String)
Delete the specified directory on the remote file server.
 o DeleteFile(String, int)
This method was created in VisualAge.
 o getDiskInformation()
Get disk information for this remote disk.
 o getFileInformation(String)
Get file information for the specified file.
 o isDirectory(String)
Check if the specified file name is a directory.
 o OpenFile(String, int)
Open a file on the remote file server.
 o RenameFile(String, String, int)
Rename a file, or set of files, on the remote file server.
 o setFileInformation(String, SMBFileInfo, int)
Set file information for the specified file.
 o StartSearch(String, int)
Start a search of the specified directory returning information for each file/directory found.

Methods

 o CloseSession
 public void CloseSession() throws IOException
Close this connection with the remote server share.

Throws: IOException
If an I/O error occurs.
Overrides:
CloseSession in class SMBDiskSession
 o CreateDirectory
 public final boolean CreateDirectory(String dir) throws IOException
Createa new directory on the remote file server.

Parameters:
dir - Directory name string. If the directory name does not have a leading '\' the current working directory for this session will be prepended to the string.
Returns:
true if the directory was created, else false.
Throws: IOException
If an I/O error occurs.
Overrides:
CreateDirectory in class SMBDiskSession
 o DeleteDirectory
 public final boolean DeleteDirectory(String dir) throws IOException
Delete the specified directory on the remote file server.

Parameters:
dir - Directory name string. If the directory name does not have a leading '\' the current working directory for this session will be preprended to the string.
Returns:
true if the directory was deleted, else false.
Throws: IOException
If an I/O error occurs.
Overrides:
DeleteDirectory in class SMBDiskSession
 o DeleteFile
 public final void DeleteFile(String fname,
                              int attr) throws IOException
This method was created in VisualAge.

Overrides:
DeleteFile in class SMBDiskSession
 o getDiskInformation
 public final SMBDiskInfo getDiskInformation() throws IOException
Get disk information for this remote disk.

Returns:
Disk information object, or null.
Throws: IOException
If an I/O error occurs.
Overrides:
getDiskInformation in class SMBDiskSession
 o getFileInformation
 public final SMBFileInfo getFileInformation(String fname) throws IOException
Get file information for the specified file.

Parameters:
fname - File name of the file to return information for.
Returns:
SMBFileInfo if the request was successful, else null.
Throws: IOException
If an I/O error occurs.
Overrides:
getFileInformation in class SMBDiskSession
 o isDirectory
 public final boolean isDirectory(String dir) throws IOException
Check if the specified file name is a directory.

Parameters:
dir - Directory name string. If the directory name does not have a leading '\' the current working directory for this session will be preprended to the string.
Returns:
true if the specified file name is a directory, else false.
Throws: IOException
If an I/O error occurs.
Overrides:
isDirectory in class SMBDiskSession
 o OpenFile
 public final SMBFile OpenFile(String fname,
                               int flags) throws IOException
Open a file on the remote file server.

Parameters:
fname - Remote file name string.
flags - File open option flags.
Returns:
SMBFile for the opened file, else null.
Throws: IOException
If an I/O error occurs
Overrides:
OpenFile in class SMBDiskSession
 o RenameFile
 public final boolean RenameFile(String curnam,
                                 String newnam,
                                 int attr) throws IOException
Rename a file, or set of files, on the remote file server.

Parameters:
curnam - Current file name string, may contain wildcards. If the path does not start with a '\' the current working directory string will be preprended.
newnam - New file name.
attr - Search attributes, to determine which file(s) to rename.
Returns:
true if the file rename request was successful, else false.
Throws: IOException
If an I/O error occurs.
Overrides:
RenameFile in class SMBDiskSession
 o setFileInformation
 public final void setFileInformation(String fname,
                                      SMBFileInfo finfo,
                                      int flags) throws IOException
Set file information for the specified file.

Parameters:
fname - File name of the file to set information for.
finfo - File information containing the new values.
flags - Bit mask of the information to set.
Throws: IOException
If an I/O error occurs.
Overrides:
setFileInformation in class SMBDiskSession
 o StartSearch
 public final SMBSearchContext StartSearch(String dir,
                                           int attr) throws IOException
Start a search of the specified directory returning information for each file/directory found.

Parameters:
dir - Directory to start searching. If the directory string does not start with a '\' then the directory name is prepended with the current working directory.
attr - Search attributes, to determine the types of files/directories returned.
Returns:
SMBSearchContext for this search, else null
Throws: IOException
If an I/O error occurs
Overrides:
StartSearch in class SMBDiskSession

All Packages  Class Hierarchy  This Package  Previous  Next  Index