org.jmythapi.protocol.response.impl
Class StorageGroupFile

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<IStorageGroupFile.Props>
          extended by org.jmythapi.protocol.response.impl.StorageGroupFile
All Implemented Interfaces:
Cloneable, IPropertyAware<IStorageGroupFile.Props>, IVersionable, ISendable, IMythResponse<IStorageGroupFile.Props>, IStorageGroupFile

public class StorageGroupFile
extends AMythResponse<IStorageGroupFile.Props>
implements IStorageGroupFile


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IStorageGroupFile
IStorageGroupFile.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
StorageGroupFile(IMythPacket packet)
           
StorageGroupFile(ProtocolVersion protoVersion, List<String> responseArgs)
           
 
Method Summary
 String getFilePath()
          Gets the full path to the file
 Long getFileSize()
          Gets the file size
 String getFileType()
          Gets the type of the file.
 Date getLastModified()
          Gets the last modified date of the file
 boolean isDirectory()
          Checks if the current entry is a directory.
static StorageGroupFile valueOf(IMythPacket packet)
           
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex
 
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 class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 
Methods inherited from interface org.jmythapi.IPropertyAware
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 

Constructor Detail

StorageGroupFile

public StorageGroupFile(IMythPacket packet)

StorageGroupFile

public StorageGroupFile(ProtocolVersion protoVersion,
                        List<String> responseArgs)
Method Detail

isDirectory

public boolean isDirectory()
Description copied from interface: IStorageGroupFile
Checks if the current entry is a directory.

Specified by:
isDirectory in interface IStorageGroupFile
Returns:
true if the entry is a directory.

getFileType

public String getFileType()
Description copied from interface: IStorageGroupFile
Gets the type of the file.

Specified by:
getFileType in interface IStorageGroupFile
Returns:
file if the entry is a file.
See Also:
IStorageGroupFile.Props.FILE_TYPE

getFilePath

public String getFilePath()
Description copied from interface: IStorageGroupFile
Gets the full path to the file

Specified by:
getFilePath in interface IStorageGroupFile
Returns:
the full file path
See Also:
IStorageGroupFile.Props.FILE_PATH

getLastModified

public Date getLastModified()
Description copied from interface: IStorageGroupFile
Gets the last modified date of the file

Specified by:
getLastModified in interface IStorageGroupFile
Returns:
the files last-mod date
See Also:
IStorageGroupFile.Props.LAST_MOD

getFileSize

public Long getFileSize()
Description copied from interface: IStorageGroupFile
Gets the file size

Specified by:
getFileSize in interface IStorageGroupFile
Returns:
the file size.
See Also:
IStorageGroupFile.Props.FILE_SIZE

valueOf

public static StorageGroupFile valueOf(IMythPacket packet)


Copyright © 2008-2013. All Rights Reserved.