Package org.netxms.client.server
Class ServerFile
java.lang.Object
org.netxms.client.server.ServerFile
- All Implemented Interfaces:
- RemoteFile
Represents information about file in server's file store
- 
Constructor SummaryConstructorsConstructorDescriptionServerFile(NXCPMessage msg, long baseId) Create server file object from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionGet file extension.Get file modification time.getName()Get file name.longgetSize()Get file size in bytes.booleanCheck if this file object represents directory.booleanCheck if this file object is a placeholder (does not correspond to actual remote file).void
- 
Constructor Details- 
ServerFileCreate server file object from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base variable ID
 
 
- 
- 
Method Details- 
getNameDescription copied from interface:RemoteFileGet file name.- Specified by:
- getNamein interface- RemoteFile
- Returns:
- file name
- See Also:
 
- 
setName- Parameters:
- name- the name to set
 
- 
getSizepublic long getSize()Description copied from interface:RemoteFileGet file size in bytes.- Specified by:
- getSizein interface- RemoteFile
- Returns:
- file size in bytes
- See Also:
 
- 
getModificationTimeDescription copied from interface:RemoteFileGet file modification time.- Specified by:
- getModificationTimein interface- RemoteFile
- Returns:
- file modification time
- See Also:
 
- 
getExtensionDescription copied from interface:RemoteFileGet file extension.- Specified by:
- getExtensionin interface- RemoteFile
- Returns:
- file extension
- See Also:
 
- 
isDirectorypublic boolean isDirectory()Description copied from interface:RemoteFileCheck if this file object represents directory.- Specified by:
- isDirectoryin interface- RemoteFile
- Returns:
- true if this file object represents directory
- See Also:
 
- 
isPlaceholderpublic boolean isPlaceholder()Description copied from interface:RemoteFileCheck if this file object is a placeholder (does not correspond to actual remote file).- Specified by:
- isPlaceholderin interface- RemoteFile
- Returns:
- true if this file object is a placeholder
- See Also:
 
 
-