public class WindowsAttributes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static WindowsAttributes |
DefaultWindowsAttributes
The default windows attributes
|
static WindowsAttributes |
ReadOnlyWindowsAttributes
The default windows attributes with the read only flag set
|
| Constructor and Description |
|---|
WindowsAttributes()
The default constructor
|
WindowsAttributes(boolean archive,
boolean compressed,
boolean encrypted,
boolean hidden,
boolean notContentIndexed,
boolean offline,
boolean readonly,
boolean temporary)
Creates a new WindowsAttributes instance
|
WindowsAttributes(int fileAttributes)
Creates a new WindowsAttributes instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAttributes()
Returns the attributes as a number
|
int |
hashCode() |
boolean |
isArchive()
Returns the archive flag
|
boolean |
isCompressed()
Returns the compressed flag
|
boolean |
isEncrypted()
Returns the encrypted flag
|
boolean |
isHidden()
Returns the hidden flag
|
boolean |
isNotContentIndexed()
Returns the notContentIndexed flag
|
boolean |
isOffline()
Returns the offline flag
|
boolean |
isReadonly()
Returns the readonly flag
|
boolean |
isTemporary() |
void |
setArchive(boolean archive)
Sets the archive flag
|
void |
setCompressed(boolean compressed)
Sets the compressed flag
|
void |
setEncrypted(boolean encrypted)
Sets the encrypted flag
|
void |
setHidden(boolean hidden)
Sets the hidden flag
|
void |
setNotContentIndexed(boolean notContentIndexed)
Sets the ContentIndexed flag
|
void |
setOffline(boolean offline)
Sets the offline flag
|
void |
setReadonly(boolean readonly)
Sets the readonly flag
|
void |
setTemporary(boolean temporary) |
java.lang.String |
toString() |
public static final WindowsAttributes DefaultWindowsAttributes
public static final WindowsAttributes ReadOnlyWindowsAttributes
public WindowsAttributes()
public WindowsAttributes(boolean archive,
boolean compressed,
boolean encrypted,
boolean hidden,
boolean notContentIndexed,
boolean offline,
boolean readonly,
boolean temporary)
archive - the archive flagcompressed - the compressed flagencrypted - the encrypted flaghidden - the hidden flagnotContentIndexed - the notContentIndexed flagoffline - the offline flagreadonly - the readonly flagtemporary - the temporary flagpublic WindowsAttributes(int fileAttributes)
fileAttributes - the file attributespublic int getAttributes()
public boolean isArchive()
public void setArchive(boolean archive)
archive - the archive flagpublic boolean isCompressed()
public void setCompressed(boolean compressed)
compressed - the compressed to setpublic boolean isEncrypted()
public void setEncrypted(boolean encrypted)
encrypted - the encrypted to setpublic boolean isHidden()
public void setHidden(boolean hidden)
hidden - the hidden to setpublic boolean isNotContentIndexed()
public void setNotContentIndexed(boolean notContentIndexed)
notContentIndexed - the notContentIndexed to setpublic boolean isOffline()
public void setOffline(boolean offline)
offline - the offline to setpublic boolean isReadonly()
public void setReadonly(boolean readonly)
readonly - the readonly to setpublic boolean isTemporary()
public void setTemporary(boolean temporary)
temporary - the temporary to setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object