author | alanb |
Tue, 24 Feb 2009 09:11:42 +0000 | |
changeset 2071 | 5e6af6d106cb |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
2071
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
1 |
/* |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
2 |
* Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
4 |
* |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Sun designates this |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
10 |
* |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
15 |
* accompanied this code). |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
16 |
* |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
20 |
* |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
23 |
* have any questions. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
24 |
*/ |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
25 |
|
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
26 |
package sun.nio.fs; |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
27 |
|
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
28 |
import java.nio.file.attribute.BasicFileAttributes; |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
29 |
|
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
30 |
/** |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
31 |
* Implemented by objects that may hold or cache the attributes of a file. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
32 |
*/ |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
33 |
|
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
34 |
public interface BasicFileAttributesHolder { |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
35 |
/** |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
36 |
* Returns cached attributes (may be null). If file is a symbolic link then |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
37 |
* the attributes are the link attributes and not the final target of the |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
38 |
* file. |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
39 |
*/ |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
40 |
BasicFileAttributes get(); |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
41 |
|
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
42 |
/** |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
43 |
* Invalidates cached attributes |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
44 |
*/ |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
45 |
void invalidate(); |
5e6af6d106cb
6808647: (file) Paths.get("C:").newDirectoryStream() iterates over Path elements with additional slash [win]
alanb
parents:
diff
changeset
|
46 |
} |