0N/A/*
2362N/A * Copyright (c) 2001, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A/*
0N/A */
0N/A
0N/Apackage java.io;
0N/A
0N/A/**
0N/A * Unicode-aware FileSystem for Windows NT/2000.
0N/A *
0N/A * @author Konstantin Kladko
0N/A * @since 1.4
0N/A */
0N/Aclass WinNTFileSystem extends Win32FileSystem {
0N/A
0N/A protected native String canonicalize0(String path)
0N/A throws IOException;
0N/A protected native String canonicalizeWithPrefix0(String canonicalPrefix,
0N/A String pathWithCanonicalPrefix)
0N/A throws IOException;
0N/A
0N/A /* -- Attribute accessors -- */
0N/A
0N/A public native int getBooleanAttributes(File f);
0N/A public native boolean checkAccess(File f, int access);
0N/A public native long getLastModifiedTime(File f);
0N/A public native long getLength(File f);
0N/A public native boolean setPermission(File f, int access, boolean enable, boolean owneronly);
0N/A
0N/A
0N/A public long getSpace(File f, int t) {
0N/A if (f.exists()) {
0N/A return getSpace0(f, t);
0N/A }
0N/A return 0;
0N/A }
0N/A
0N/A private native long getSpace0(File f, int t);
0N/A
0N/A /* -- File operations -- */
0N/A
0N/A public native boolean createFileExclusively(String path)
0N/A throws IOException;
0N/A protected native boolean delete0(File f);
0N/A public native String[] list(File f);
0N/A public native boolean createDirectory(File f);
0N/A protected native boolean rename0(File f1, File f2);
0N/A public native boolean setLastModifiedTime(File f, long time);
0N/A public native boolean setReadOnly(File f);
0N/A protected native String getDriveDirectory(int drive);
0N/A private static native void initIDs();
0N/A
0N/A static {
0N/A initIDs();
0N/A }
0N/A}