org.jmythapi.protocol.response.impl
Class FileStatus
java.lang.Object
   org.jmythapi.impl.AData<E>
org.jmythapi.impl.AData<E>
       org.jmythapi.protocol.response.impl.AMythResponse<IFileStatus.Props>
org.jmythapi.protocol.response.impl.AMythResponse<IFileStatus.Props>
           org.jmythapi.protocol.response.impl.FileStatus
org.jmythapi.protocol.response.impl.FileStatus
- All Implemented Interfaces: 
- Cloneable, IPropertyAware<IFileStatus.Props>, IVersionable, ISendable, IFileStatus, IMythResponse<IFileStatus.Props>
- public class FileStatus 
- extends AMythResponse<IFileStatus.Props>- implements IFileStatus
 
 
 
 
 
 
 
| Methods inherited from class org.jmythapi.impl.AData | 
| clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString | 
 
 
 
| Methods inherited from interface org.jmythapi.IPropertyAware | 
| getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject | 
 
FileStatus
public FileStatus(IMythPacket packet)
- Constructs a status object from a protocol packet.
 
- Parameters:
- packet- the protocol packet
 
FileStatus
public FileStatus(ProtocolVersion protoVersion,
                  String... responseArgs)
- Constructs a status object for the given protocol version and response arguments.
 
- Parameters:
- protoVersion- the protocol version
- responseArgs- the response arguments
 
fileExists
public boolean fileExists()
- Description copied from interface: IFileStatus
- Checks if the queried file exists.
 
- 
- Specified by:
- fileExistsin interface- IFileStatus
 
- 
- Returns:
- trueif the queried file exists.
 
getFilePath
public String getFilePath()
- Description copied from interface: IFileStatus
- Gets the full path of queried file.
 
- 
- Specified by:
- getFilePathin interface- IFileStatus
 
- 
- Returns:
- the files full path, or nullif the file was not found.
 
getFileSize
public Long getFileSize()
- Description copied from interface: IFileStatus
- Gets the size of the file in bytes.
 
- 
- Specified by:
- getFileSizein interface- IFileStatus
 
- 
- Returns:
- the file size in bytes.
 
getLastModified
public Date getLastModified()
- 
- Specified by:
- getLastModifiedin interface- IFileStatus
 
- 
 
valueOf
public static FileStatus valueOf(IMythPacket packet)
- Constructs a new status object from a protocol packet and does some data correction.
 
- 
 
- 
- Parameters:
- packet- the protocol packet
- Returns:
- the created status object
 
valueOf
public static FileStatus valueOf(ProtocolVersion protoVersion,
                                 String[] args)
- 
 
- 
 
valueOf
public static FileStatus valueOf(ProtocolVersion protoVersion,
                                 boolean fileExists,
                                 String fileName)
- 
 
- 
 
Copyright © 2008-2013. All Rights Reserved.