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.


Method Index

 o getDateTime()
Get the files date/time of last write
 o getFileName()
Get the file name string
 o getPath()
Get the file path string.
 o getSize()
Get the file size, in bytes.
 o isDirectory()
Return the directory file attribute status.
 o isHidden()
Return the hidden file attribute status.
 o isReadOnly()
Return the read-only file attribute status.
 o isSystem()
Return the system file attribute status.
 o toString()
Return the file information as a string.

Methods

 o getDateTime
 public final SMBDate getDateTime()
Get the files date/time of last write

Returns:
File write date/time.
 o getFileName
 public final String getFileName()
Get the file name string

Returns:
File name string.
 o getPath
 public final String getPath()
Get the file path string.

Returns:
File path string, relative to the share.
 o getSize
 public final int getSize()
Get the file size, in bytes.

Returns:
File size in bytes.
 o isDirectory
 public final boolean isDirectory()
Return the directory file attribute status.

Returns:
true if the file is a directory, else false.
 o isHidden
 public final boolean isHidden()
Return the hidden file attribute status.

Returns:
true if the file is hidden, else false.
 o isReadOnly
 public final boolean isReadOnly()
Return the read-only file attribute status.

Returns:
true if the file is read-only, else false.
 o isSystem
 public final boolean isSystem()
Return the system file attribute status.

Returns:
true if the file is a system file, else false.
 o 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