author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 43544 | jdk/src/java.base/aix/classes/sun/nio/fs/DefaultFileSystemProvider.java@457673db6798 |
child 52727 | 396dfb0e8ba5 |
permissions | -rw-r--r-- |
43544
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
1 |
/* |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
2 |
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
4 |
* |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
10 |
* |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
15 |
* accompanied this code). |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
16 |
* |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
20 |
* |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
23 |
* questions. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
24 |
*/ |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
25 |
|
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
26 |
package sun.nio.fs; |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
27 |
|
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
28 |
import java.nio.file.spi.FileSystemProvider; |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
29 |
|
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
30 |
/** |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
31 |
* Creates this platform's default FileSystemProvider. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
32 |
*/ |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
33 |
|
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
34 |
public class DefaultFileSystemProvider { |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
35 |
private DefaultFileSystemProvider() { } |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
36 |
|
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
37 |
/** |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
38 |
* Returns the default FileSystemProvider. |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
39 |
*/ |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
40 |
public static FileSystemProvider create() { |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
41 |
return new AixFileSystemProvider(); |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
42 |
} |
457673db6798
8173982: (fs) DefaultFileSystemProvider should be split into platform specific versions
redestad
parents:
diff
changeset
|
43 |
} |