1e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera/*
2e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
3e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera *
5e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * This code is free software; you can redistribute it and/or modify it
6e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * under the terms of the GNU General Public License version 2 only, as
7e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * published by the Free Software Foundation.  Oracle designates this
8e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * particular file as subject to the "Classpath" exception as provided
9e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * by Oracle in the LICENSE file that accompanied this code.
10e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera *
11e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * This code is distributed in the hope that it will be useful, but WITHOUT
12e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * version 2 for more details (a copy is included in the LICENSE file that
15e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * accompanied this code).
16e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera *
17e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * You should have received a copy of the GNU General Public License version
18e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * 2 along with this work; if not, write to the Free Software Foundation,
19e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera *
21e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * or visit www.oracle.com if you need additional information or have any
23e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * questions.
24e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera */
25e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera
26e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmerapackage sun.nio.fs;
27e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera
28e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmeraimport java.nio.file.attribute.BasicFileAttributes;
29e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera
30e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera/**
31e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera * Implemented by objects that may hold or cache the attributes of a file.
32e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera */
33e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera
34e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmerapublic interface BasicFileAttributesHolder {
35e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera    /**
36e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     * Returns cached attributes (may be null). If file is a symbolic link then
37e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     * the attributes are the link attributes and not the final target of the
38e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     * file.
39e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     */
40e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera    BasicFileAttributes get();
41e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera
42e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera    /**
43e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     * Invalidates cached attributes
44e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera     */
45e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera    void invalidate();
46e6bac4bf9c85c2454ce22c91da6c654552c268e0Shubham Ajmera}
47