1. /*
  2. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. /*
  6. * @(#)WinNTFileSystem.java 1.6 03/09/02
  7. */
  8. package java.io;
  9. /**
  10. * Unicode-aware FileSystem for Windows NT/2000.
  11. *
  12. * @author Konstantin Kladko
  13. * @version 1.6, 03/09/02
  14. * @since 1.4
  15. */
  16. class WinNTFileSystem extends Win32FileSystem {
  17. protected native String canonicalize0(String path)
  18. throws IOException;
  19. protected native String canonicalizeWithPrefix0(String canonicalPrefix,
  20. String pathWithCanonicalPrefix)
  21. throws IOException;
  22. /* -- Attribute accessors -- */
  23. public native int getBooleanAttributes(File f);
  24. public native boolean checkAccess(File f, boolean write);
  25. public native long getLastModifiedTime(File f);
  26. public native long getLength(File f);
  27. /* -- File operations -- */
  28. public native boolean createFileExclusively(String path)
  29. throws IOException;
  30. public native boolean delete(File f);
  31. public synchronized native boolean deleteOnExit(File f);
  32. public native String[] list(File f);
  33. public native boolean createDirectory(File f);
  34. public native boolean rename(File f1, File f2);
  35. public native boolean setLastModifiedTime(File f, long time);
  36. public native boolean setReadOnly(File f);
  37. native String getDriveDirectory(int drive);
  38. private static native void initIDs();
  39. static {
  40. initIDs();
  41. }
  42. }