All Packages Class Hierarchy This Package Previous Next Index
Class com.starla.lite.SMBFileInfo
java.lang.Object
|
+----com.starla.lite.SMBFileInfo
- public class SMBFileInfo
- extends Object
SMB file information class.
The SMBFileInfo class is returned by the SMBDiskSession.getFileInformation () method and contains
details of the requested file.
SMBFileInfo objects are also returned by a directory search that is started using
the SMBDiskSession.StartSearch () method. The search request creates an SMBSearchContext
object which can return either file names, via the nextFileName () method, or can return
SMBFileInfo objects for each file found, via the nextFileInfo () method.
-
getDateTime()
- Get the files date/time of last write
-
getFileName()
- Get the file name string
-
getPath()
- Get the file path string.
-
getSize()
- Get the file size, in bytes.
-
isDirectory()
- Return the directory file attribute status.
-
isHidden()
- Return the hidden file attribute status.
-
isReadOnly()
- Return the read-only file attribute status.
-
isSystem()
- Return the system file attribute status.
-
toString()
- Return the file information as a string.
getDateTime
public final SMBDate getDateTime()
- Get the files date/time of last write
- Returns:
- File write date/time.
getFileName
public final String getFileName()
- Get the file name string
- Returns:
- File name string.
getPath
public final String getPath()
- Get the file path string.
- Returns:
- File path string, relative to the share.
getSize
public final int getSize()
- Get the file size, in bytes.
- Returns:
- File size in bytes.
isDirectory
public final boolean isDirectory()
- Return the directory file attribute status.
- Returns:
- true if the file is a directory, else false.
isHidden
public final boolean isHidden()
- Return the hidden file attribute status.
- Returns:
- true if the file is hidden, else false.
isReadOnly
public final boolean isReadOnly()
- Return the read-only file attribute status.
- Returns:
- true if the file is read-only, else false.
isSystem
public final boolean isSystem()
- Return the system file attribute status.
- Returns:
- true if the file is a system file, else false.
toString
public final String toString()
- Return the file information as a string.
- Returns:
- File information string.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index