766N/A/*
961N/A * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
766N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
766N/A *
766N/A * This code is free software; you can redistribute it and/or modify it
766N/A * under the terms of the GNU General Public License version 2 only, as
766N/A * published by the Free Software Foundation. Oracle designates this
766N/A * particular file as subject to the "Classpath" exception as provided
766N/A * by Oracle in the LICENSE file that accompanied this code.
766N/A *
766N/A * This code is distributed in the hope that it will be useful, but WITHOUT
766N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
766N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
766N/A * version 2 for more details (a copy is included in the LICENSE file that
766N/A * accompanied this code).
766N/A *
766N/A * You should have received a copy of the GNU General Public License version
766N/A * 2 along with this work; if not, write to the Free Software Foundation,
766N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
766N/A *
766N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
766N/A * or visit www.oracle.com if you need additional information or have any
766N/A * questions.
766N/A */
766N/A
766N/Apackage java.nio.file.attribute;
766N/A
766N/A/**
766N/A * File attributes associated with a file in a file system that supports
766N/A * legacy "DOS" attributes.
766N/A *
766N/A * <p> <b>Usage Example:</b>
766N/A * <pre>
766N/A * Path file = ...
766N/A * DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class);
766N/A * </pre>
766N/A *
766N/A * @since 1.7
766N/A */
766N/A
766N/Apublic interface DosFileAttributes
766N/A extends BasicFileAttributes
766N/A{
766N/A /**
766N/A * Returns the value of the read-only attribute.
766N/A *
766N/A * <p> This attribute is often used as a simple access control mechanism
766N/A * to prevent files from being deleted or updated. Whether the file system
766N/A * or platform does any enforcement to prevent <em>read-only</em> files
766N/A * from being updated is implementation specific.
766N/A *
766N/A * @return the value of the read-only attribute
766N/A */
766N/A boolean isReadOnly();
766N/A
766N/A /**
766N/A * Returns the value of the hidden attribute.
766N/A *
766N/A * <p> This attribute is often used to indicate if the file is visible to
766N/A * users.
766N/A *
766N/A * @return the value of the hidden attribute
766N/A */
766N/A boolean isHidden();
766N/A
766N/A /**
766N/A * Returns the value of the archive attribute.
766N/A *
766N/A * <p> This attribute is typically used by backup programs.
766N/A *
766N/A * @return the value of the archive attribute
766N/A */
766N/A boolean isArchive();
766N/A
766N/A /**
766N/A * Returns the value of the system attribute.
766N/A *
766N/A * <p> This attribute is often used to indicate that the file is a component
766N/A * of the operating system.
766N/A *
766N/A * @return the value of the system attribute
766N/A */
766N/A boolean isSystem();
766N/A}
766N/A