Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DosFileAttributes extends BasicFileAttributes
File attributes associated with a file in a file system that supports legacy "DOS" attributes.
The DOS attributes of a file are retrieved using a DosFileAttributeView
by invoking its readAttributes
method.
Attributes.readDosFileAttributes(java.nio.file.FileRef, java.nio.file.LinkOption...)
Modifier and Type | Method and Description |
---|---|
boolean |
isArchive()
Returns the value of the archive attribute. |
boolean |
isHidden()
Returns the value of the hidden attribute. |
boolean |
isReadOnly()
Returns the value of the read-only attribute. |
boolean |
isSystem()
Returns the value of the system attribute. |
Methods inherited from interface java.nio.file.attribute.BasicFileAttributes |
---|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size |
Method Detail |
---|
boolean isReadOnly()
This attribute is often used as a simple access control mechanism to prevent files from being deleted or updated. Whether the file system or platform does any enforcement to prevent read-only files from being updated is implementation specific.
boolean isHidden()
This attribute is often used to indicate if the file is visible to users.
boolean isArchive()
This attribute is typically used by backup programs.
boolean isSystem()
This attribute is often used to indicate that the file is a component of the operating system.
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.