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
ConstructorsConstructorDescriptionServerFile(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.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
-
ServerFile
Create server file object from NXCP message.- Parameters:
msg- NXCP messagebaseId- base variable ID
-
-
Method Details
-
getName
Description copied from interface:RemoteFileGet file name.- Specified by:
getNamein interfaceRemoteFile- Returns:
- file name
- See Also:
-
setName
- Parameters:
name- the name to set
-
getSize
public long getSize()Description copied from interface:RemoteFileGet file size in bytes.- Specified by:
getSizein interfaceRemoteFile- Returns:
- file size in bytes
- See Also:
-
getModificationTime
Description copied from interface:RemoteFileGet file modification time.- Specified by:
getModificationTimein interfaceRemoteFile- Returns:
- file modification time
- See Also:
-
getExtension
Description copied from interface:RemoteFileGet file extension.- Specified by:
getExtensionin interfaceRemoteFile- Returns:
- file extension
- See Also:
-
isDirectory
public boolean isDirectory()Description copied from interface:RemoteFileCheck if this file object represents directory.- Specified by:
isDirectoryin interfaceRemoteFile- Returns:
- true if this file object represents directory
- See Also:
-
isPlaceholder
public boolean isPlaceholder()Description copied from interface:RemoteFileCheck if this file object is a placeholder (does not correspond to actual remote file).- Specified by:
isPlaceholderin interfaceRemoteFile- Returns:
- true if this file object is a placeholder
- See Also:
-