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
-
CloseSession()
- Close this connection with the remote server share.
-
CreateDirectory(String)
- Createa new directory on the remote file server.
-
DeleteDirectory(String)
- Delete the specified directory on the remote file server.
-
DeleteFile(String, int)
- This method was created in VisualAge.
-
getDiskInformation()
- Get disk information for this remote disk.
-
getFileInformation(String)
- Get file information for the specified file.
-
isDirectory(String)
- Check if the specified file name is a directory.
-
OpenFile(String, int)
- Open a file on the remote file server.
-
RenameFile(String, String, int)
- Rename a file, or set of files, on the remote file server.
-
setFileInformation(String, SMBFileInfo, int)
- Set file information for the specified file.
-
StartSearch(String, int)
- Start a search of the specified directory returning information for each
file/directory found.
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
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
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
DeleteFile
public final void DeleteFile(String fname,
int attr) throws IOException
- This method was created in VisualAge.
- Overrides:
- DeleteFile in class SMBDiskSession
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
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
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
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
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
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
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