public final class ShareFileItem extends Object
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
EnumSet<NtfsFileAttributes> |
getFileAttributes() |
Long |
getFileSize() |
String |
getId() |
String |
getName() |
String |
getPermissionKey() |
ShareFileItemProperties |
getProperties() |
boolean |
isDirectory() |
public ShareFileItem(String name, boolean isDirectory, Long fileSize)
name - Name of the file or the directory.isDirectory - A boolean set to true if the reference is a directory, false if the reference is a file.fileSize - Size of a file. Pass null if the reference is a directory.public ShareFileItem(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet<NtfsFileAttributes> fileAttributes, String permissionKey, Long fileSize)
name - Name of the file or the directory.isDirectory - A boolean set to true if the reference is a directory, false if the reference is a file.id - ID of the file or directory.properties - Properties of the file or directory.fileAttributes - NTFS attributes of the file or directory.permissionKey - Permission key of the file or directory.fileSize - Size of a file. Pass null if the reference is a directory.public String getName()
public boolean isDirectory()
public Long getFileSize()
null if the reference is a directory.public String getId()
public ShareFileItemProperties getProperties()
public EnumSet<NtfsFileAttributes> getFileAttributes()
public String getPermissionKey()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.