public static class FileUtilities.FileAttribute
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileUtilities.FileAttribute.Type
An enumeration to specify the file's attributes.
They can be used one by one, or an bit-combination of them. |
Constructor and Description |
---|
FileAttribute() |
FileAttribute(FileUtilities.FileAttribute.Type type) |
FileAttribute(int attributes) |
Modifier and Type | Method and Description |
---|---|
FileUtilities.FileAttribute |
add(FileUtilities.FileAttribute.Type type) |
FileUtilities.FileAttribute |
add(int attributes) |
static boolean |
contains(int actualAttributes,
int expectedAttributes) |
boolean |
containsArchive() |
static boolean |
containsArchive(int attributes) |
boolean |
containsDirectory() |
static boolean |
containsDirectory(int attributes) |
boolean |
containsHidden() |
static boolean |
containsHidden(int attributes) |
boolean |
containsReadOnly() |
static boolean |
containsReadOnly(int attributes) |
boolean |
containsSystem() |
static boolean |
containsSystem(int attributes) |
boolean |
containsVolumeLabel() |
static boolean |
containsVolumeLabel(int attributes) |
boolean |
equals(java.lang.Object attr) |
java.lang.String |
getStringValue() |
int |
getValue() |
static FileUtilities.FileAttribute |
instance() |
static FileUtilities.FileAttribute |
instance(FileUtilities.FileAttribute.Type type) |
static FileUtilities.FileAttribute |
instance(int attributes) |
boolean |
isNormalFile() |
static boolean |
isNormalFile(int attributes) |
java.lang.String |
toString()
A string represents this attribute.
It can contain "R", "H", "S", "A", "D", "V", "N". For example: "R S H" means ReadOnly, System, Hidden. |
public FileAttribute()
public FileAttribute(FileUtilities.FileAttribute.Type type)
public FileAttribute(int attributes)
public static FileUtilities.FileAttribute instance()
public static FileUtilities.FileAttribute instance(FileUtilities.FileAttribute.Type type)
public static FileUtilities.FileAttribute instance(int attributes)
public FileUtilities.FileAttribute add(FileUtilities.FileAttribute.Type type)
public FileUtilities.FileAttribute add(int attributes)
public int getValue()
public java.lang.String getStringValue()
public boolean containsReadOnly()
public boolean containsHidden()
public boolean containsSystem()
public boolean containsVolumeLabel()
public boolean containsDirectory()
public boolean containsArchive()
public boolean isNormalFile()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean contains(int actualAttributes, int expectedAttributes)
actualAttributes
- intexpectedAttributes
- int, one of FileUtilities.FileAttribute.Type
or their combination.public static boolean containsReadOnly(int attributes)
public static boolean containsHidden(int attributes)
public static boolean containsSystem(int attributes)
public static boolean containsVolumeLabel(int attributes)
public static boolean containsDirectory(int attributes)
public static boolean containsArchive(int attributes)
public static boolean isNormalFile(int attributes)
public boolean equals(java.lang.Object attr)
equals
in class java.lang.Object
Copyright © SAS Institute. All Rights Reserved.