ShareFileItem Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareFileItem
- com.
public final class ShareFileItem
Contains file or directory reference information in the storage File service.
Constructor Summary
Constructor | Description |
---|---|
ShareFileItem(String name, boolean isDirectory, Long fileSize) |
Creates an instance of file or directory reference information about a specific Share. |
ShareFileItem(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet<NtfsFileAttributes> fileAttributes, String permissionKey, Long fileSize) |
Creates an instance of file or directory reference information about a specific Share. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Enum |
getFileAttributes()
Gets the NTFS attributes of the file or directory. |
Long |
getFileSize()
Gets the size of a file, |
String |
getId()
Gets the ID of the file or directory. |
String |
getName()
Gets the name of the file or the directory. |
String |
getPermissionKey()
Gets the permission key of the file or directory. |
Share |
getProperties()
Gets the properties of the file or directory. |
boolean |
isDirectory()
Gets a boolean set to true if the reference is a directory, false if the reference is a file. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileItem
public ShareFileItem(String name, boolean isDirectory, Long fileSize)
Creates an instance of file or directory reference information about a specific Share.
Parameters:
null
if the reference is a directory.
ShareFileItem
public ShareFileItem(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet
Creates an instance of file or directory reference information about a specific Share.
Parameters:
null
if the reference is a directory.
Method Details
getFileAttributes
public EnumSet
Gets the NTFS attributes of the file or directory.
Returns:
getFileSize
public Long getFileSize()
Gets the size of a file, null
if the reference is a directory.
Returns:
null
if the reference is a directory.getId
public String getId()
Gets the ID of the file or directory.
Returns:
getName
public String getName()
Gets the name of the file or the directory.
Returns:
getPermissionKey
public String getPermissionKey()
Gets the permission key of the file or directory.
Returns:
getProperties
public ShareFileItemProperties getProperties()
Gets the properties of the file or directory.
Returns:
isDirectory
public boolean isDirectory()
Gets a boolean set to true if the reference is a directory, false if the reference is a file.
Returns: