jdk/src/share/classes/java/io/FileSystem.java
author dxu
Fri, 26 Oct 2012 11:21:02 +0100
changeset 14324 3510b4bf90ee
parent 5506 202f599c92aa
child 15136 c17824042364
permissions -rw-r--r--
4239752: FileSystem should be a platform-specific class to avoid native code Reviewed-by: alanb, dholmes, erikj, jgish
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
14324
3510b4bf90ee 4239752: FileSystem should be a platform-specific class to avoid native code
dxu
parents: 5506
diff changeset
     2
 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.io;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * Package-private abstract class for the local filesystem abstraction.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
abstract class FileSystem {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    /* -- Normalization and construction -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
     * Return the local filesystem's name-separator character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    public abstract char getSeparator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
     * Return the local filesystem's path-separator character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    public abstract char getPathSeparator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     * Convert the given pathname string to normal form.  If the string is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * already in normal form then it is simply returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    public abstract String normalize(String path);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * Compute the length of this pathname string's prefix.  The pathname
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * string must be in normal form.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    public abstract int prefixLength(String path);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * Resolve the child pathname string against the parent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * Both strings must be in normal form, and the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * will be in normal form.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    public abstract String resolve(String parent, String child);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * Return the parent pathname string to be used when the parent-directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * argument in one of the two-argument File constructors is the empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * pathname.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    public abstract String getDefaultParent();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * Post-process the given URI path string if necessary.  This is used on
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * win32, e.g., to transform "/c:/foo" into "c:/foo".  The path string
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * still has slash separators; code in the File class will translate them
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * after this method returns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public abstract String fromURIPath(String path);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    /* -- Path operations -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * Tell whether or not the given abstract pathname is absolute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    public abstract boolean isAbsolute(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * Resolve the given abstract pathname into absolute form.  Invoked by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * getAbsolutePath and getCanonicalPath methods in the File class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public abstract String resolve(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    public abstract String canonicalize(String path) throws IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    /* -- Attribute accessors -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /* Constants for simple boolean attributes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    public static final int BA_EXISTS    = 0x01;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    public static final int BA_REGULAR   = 0x02;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    public static final int BA_DIRECTORY = 0x04;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    public static final int BA_HIDDEN    = 0x08;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * Return the simple boolean attributes for the file or directory denoted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * by the given abstract pathname, or zero if it does not exist or some
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * other I/O error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    public abstract int getBooleanAttributes(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    public static final int ACCESS_READ    = 0x04;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    public static final int ACCESS_WRITE   = 0x02;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final int ACCESS_EXECUTE = 0x01;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * Check whether the file or directory denoted by the given abstract
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * pathname may be accessed by this process.  The second argument specifies
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * which access, ACCESS_READ, ACCESS_WRITE or ACCESS_EXECUTE, to check.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * Return false if access is denied or an I/O error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    public abstract boolean checkAccess(File f, int access);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * Set on or off the access permission (to owner only or to all) to the file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * or directory denoted by the given abstract pathname, based on the parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * enable, access and oweronly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public abstract boolean setPermission(File f, int access, boolean enable, boolean owneronly);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * Return the time at which the file or directory denoted by the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * abstract pathname was last modified, or zero if it does not exist or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * some other I/O error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    public abstract long getLastModifiedTime(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Return the length in bytes of the file denoted by the given abstract
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * pathname, or zero if it does not exist, is a directory, or some other
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * I/O error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    public abstract long getLength(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    /* -- File operations -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * Create a new empty file with the given pathname.  Return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * <code>true</code> if the file was created and <code>false</code> if a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * file or directory with the given pathname already exists.  Throw an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * IOException if an I/O error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    public abstract boolean createFileExclusively(String pathname)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        throws IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * Delete the file or directory denoted by the given abstract pathname,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * returning <code>true</code> if and only if the operation succeeds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    public abstract boolean delete(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * List the elements of the directory denoted by the given abstract
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * pathname.  Return an array of strings naming the elements of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * directory if successful; otherwise, return <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    public abstract String[] list(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Create a new directory denoted by the given abstract pathname,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * returning <code>true</code> if and only if the operation succeeds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    public abstract boolean createDirectory(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Rename the file or directory denoted by the first abstract pathname to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * the second abstract pathname, returning <code>true</code> if and only if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * the operation succeeds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    public abstract boolean rename(File f1, File f2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * Set the last-modified time of the file or directory denoted by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * given abstract pathname, returning <code>true</code> if and only if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * operation succeeds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    public abstract boolean setLastModifiedTime(File f, long time);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * Mark the file or directory denoted by the given abstract pathname as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * read-only, returning <code>true</code> if and only if the operation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * succeeds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    public abstract boolean setReadOnly(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    /* -- Filesystem interface -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * List the available filesystem roots.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    public abstract File[] listRoots();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    /* -- Disk usage -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    public static final int SPACE_TOTAL  = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    public static final int SPACE_FREE   = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    public static final int SPACE_USABLE = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    public abstract long getSpace(File f, int t);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    /* -- Basic infrastructure -- */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * Compare two abstract pathnames lexicographically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    public abstract int compare(File f1, File f2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * Compute the hash code of an abstract pathname.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    public abstract int hashCode(File f);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    // Flags for enabling/disabling performance optimizations for file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    // name canonicalization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    static boolean useCanonCaches      = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    static boolean useCanonPrefixCache = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    private static boolean getBooleanProperty(String prop, boolean defaultVal) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
        String val = System.getProperty(prop);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        if (val == null) return defaultVal;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        if (val.equalsIgnoreCase("true")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    static {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
        useCanonCaches      = getBooleanProperty("sun.io.useCanonCaches",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                                                 useCanonCaches);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        useCanonPrefixCache = getBooleanProperty("sun.io.useCanonPrefixCache",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                                                 useCanonPrefixCache);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
}