01: /*
02: * Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License version
07: * 2 only, as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful, but
10: * WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * General Public License version 2 for more details (a copy is
13: * included at /legal/license.txt).
14: *
15: * You should have received a copy of the GNU General Public License
16: * version 2 along with this work; if not, write to the Free Software
17: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18: * 02110-1301 USA
19: *
20: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
21: * Clara, CA 95054 or visit www.sun.com if you need additional
22: * information or have any questions.
23: */
24:
25: /*
26: * @(#)WinNTFileSystem.java 1.9 06/10/10
27: */
28:
29: package java.io;
30:
31: /**
32: * Unicode-aware FileSystem for Windows NT/2000.
33: *
34: * @author Konstantin Kladko
35: * @version 1.9, 06/10/10
36: * @since 1.4
37: */
38: class WinNTFileSystem extends Win32FileSystem {
39:
40: protected native String canonicalize0(String path)
41: throws IOException;
42:
43: /* -- Attribute accessors -- */
44:
45: public native int getBooleanAttributes(File f);
46:
47: public native boolean checkAccess(File f, boolean write);
48:
49: public native long getLastModifiedTime(File f);
50:
51: public native long getLength(File f);
52:
53: /* -- File operations -- */
54:
55: public native boolean createFileExclusively(String path)
56: throws IOException;
57:
58: protected native boolean delete0(File f);
59:
60: public synchronized native boolean deleteOnExit(File f);
61:
62: public native String[] list(File f);
63:
64: public native boolean createDirectory(File f);
65:
66: protected native boolean rename0(File f1, File f2);
67:
68: public native boolean setLastModifiedTime(File f, long time);
69:
70: public native boolean setReadOnly(File f);
71:
72: protected native String getDriveDirectory(int drive);
73:
74: private static native void initIDs();
75:
76: static {
77: initIDs();
78: }
79: }
|