|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.starla.smb.SMBSession | +--com.starla.smb.SMBDiskSession | +--com.starla.smb.SMBCIFSDiskSession
SMB CIFS disk session class
The SMBCIFSDiskSession class extends the SMBDiskSession class and provides CIFS protocol specific implementations for the SMBDiskSession methods.
An SMBCIFSDiskSession object will be created by the SMBSessionFactory static class when the negotiated SMB dialect indicates that the remote server supports an SMB dialect greater than Core or CorePlus.
The SMBSessionFactory.OpenDisk () method is used to create a session to a remote disk share. A PCShare object specifies the remote server and share to connect to, along with any required access control.
Fields inherited from class com.starla.smb.SMBDiskSession |
Attributes,
WriteDate,
WriteTime |
Fields inherited from class com.starla.smb.SMBSession |
DBGDumpPacket,
DBGHexDump,
DBGPacketType,
DEFAULT_BUFSIZE,
EncryptPass,
RawRead,
RawWrite,
UserMode |
Method Summary | |
void |
CloseSession()
Close this connection with the remote server share. |
boolean |
CreateDirectory(java.lang.String dir)
Createa new directory on the remote file server. |
boolean |
DeleteDirectory(java.lang.String dir)
Delete the specified directory on the remote file server. |
void |
DeleteFile(java.lang.String fname,
int attr)
Delete the specified file on the remote file server. |
SMBDiskInfo |
getDiskInformation()
Get disk information for this remote disk. |
SMBFileInfo |
getFileInformation(java.lang.String fname)
Get file information for the specified file. |
boolean |
isDirectory(java.lang.String dir)
Check if the specified file name is a directory. |
SMBFile |
OpenFile(java.lang.String fname,
int flags)
Open a file on the remote file server. |
boolean |
RenameFile(java.lang.String curnam,
java.lang.String newnam,
int attr)
Rename a file, or set of files, on the remote file server. |
void |
setFileInformation(java.lang.String fname,
SMBFileInfo finfo,
int flags)
Set file information for the specified file. |
SMBSearchContext |
StartSearch(java.lang.String dir,
int attr)
Start a search of the specified directory returning information for each file/directory found. |
Methods inherited from class com.starla.smb.SMBDiskSession |
DeleteFile,
FileExists,
getWorkingDirectory,
isClosed,
OpenInputStream,
OpenOutputStream,
RenameFile,
setWorkingDirectory |
Methods inherited from class com.starla.smb.SMBSession |
getDeviceType,
getDialect,
getDomain,
getEncryptionKey,
getLANManagerType,
getMaximumPacketSize,
getOperatingSystem,
getPassword,
getServer,
getSessionFlag,
getSessionId,
getShareName,
getUserId,
getUserName,
hasDebugOption,
isActive,
isDebug,
print,
println,
println,
setDebug,
setEncryptionKey,
setRawMode,
setSecurityMode,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public void CloseSession() throws java.io.IOException
public final boolean CreateDirectory(java.lang.String dir) throws java.io.IOException
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.public final boolean DeleteDirectory(java.lang.String dir) throws java.io.IOException
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.public final void DeleteFile(java.lang.String fname, int attr) throws java.io.IOException
fname
- File name of the remote file to delete. If the file name does
not have a leading '\' the current working directory for this
session will be prepended to the string.attr
- File attributes of the file(s) to delete.public final SMBDiskInfo getDiskInformation() throws java.io.IOException
public final SMBFileInfo getFileInformation(java.lang.String fname) throws java.io.IOException, java.io.FileNotFoundException
fname
- File name of the file to return information for.public final boolean isDirectory(java.lang.String dir) throws java.io.IOException
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.public final SMBFile OpenFile(java.lang.String fname, int flags) throws java.io.IOException
fname
- Remote file name string.flags
- File open option flags.public final boolean RenameFile(java.lang.String curnam, java.lang.String newnam, int attr) throws java.io.IOException
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.public final void setFileInformation(java.lang.String fname, SMBFileInfo finfo, int flags) throws java.io.IOException
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.public final SMBSearchContext StartSearch(java.lang.String dir, int attr) throws java.io.IOException
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |