com.starla.smb
Class SMBFileInfo

java.lang.Object
  |
  +--com.starla.smb.SMBFileInfo

public class SMBFileInfo
extends java.lang.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 Summary
 com.starla.smb.SMBDate getDateTime()
          Get the files date/time of last write
 java.lang.String getFileName()
          Get the file name string
 java.lang.String getPath()
          Get the file path string.
 int getSize()
          Get the file size, in bytes.
 boolean isDirectory()
          Return the directory file attribute status.
 boolean isHidden()
          Return the hidden file attribute status.
 boolean isReadOnly()
          Return the read-only file attribute status.
 boolean isSystem()
          Return the system file attribute status.
 java.lang.String toString()
          Return the file information as a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDateTime

public final com.starla.smb.SMBDate getDateTime()
Get the files date/time of last write
Returns:
File write date/time.

getFileName

public final java.lang.String getFileName()
Get the file name string
Returns:
File name string.

getPath

public final java.lang.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 java.lang.String toString()
Return the file information as a string.
Returns:
File information string.
Overrides:
toString in class java.lang.Object