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 Summary
ConstructorDescriptionServerFile
(NXCPMessage msg, long baseId) Create server file object from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionGet file extension.Get file modification time.getName()
Get file name.long
getSize()
Get file size in bytes.boolean
Check if this file object represents directory.boolean
Check if this file object is a placeholder (does not correspond to actual remote file).void
-
Constructor Details
-
ServerFile
Create server file object from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base variable ID
-
-
Method Details
-
getName
Description copied from interface:RemoteFile
Get file name.- Specified by:
getName
in interfaceRemoteFile
- Returns:
- file name
- See Also:
-
setName
- Parameters:
name
- the name to set
-
getSize
public long getSize()Description copied from interface:RemoteFile
Get file size in bytes.- Specified by:
getSize
in interfaceRemoteFile
- Returns:
- file size in bytes
- See Also:
-
getModificationTime
Description copied from interface:RemoteFile
Get file modification time.- Specified by:
getModificationTime
in interfaceRemoteFile
- Returns:
- file modification time
- See Also:
-
getExtension
Description copied from interface:RemoteFile
Get file extension.- Specified by:
getExtension
in interfaceRemoteFile
- Returns:
- file extension
- See Also:
-
isDirectory
public boolean isDirectory()Description copied from interface:RemoteFile
Check if this file object represents directory.- Specified by:
isDirectory
in interfaceRemoteFile
- Returns:
- true if this file object represents directory
- See Also:
-
isPlaceholder
public boolean isPlaceholder()Description copied from interface:RemoteFile
Check if this file object is a placeholder (does not correspond to actual remote file).- Specified by:
isPlaceholder
in interfaceRemoteFile
- Returns:
- true if this file object is a placeholder
- See Also:
-