diff options
| author | 2012-03-08 16:29:54 -0800 | |
|---|---|---|
| committer | 2012-03-08 16:29:54 -0800 | |
| commit | 061ccee7f384925f11b51a68f8d48f2f27baba87 (patch) | |
| tree | c265c20aeee548b31eae686c6ffb09892765e8f4 | |
| parent | df813c03b16ed32c25a8c8fee82a7a98088ac940 (diff) | |
| parent | 929b5899a348d2d43f67902f7a807d6660226a64 (diff) | |
Merge "Deprecate some FileUtils, pointing to Os instead."
| -rw-r--r-- | core/java/android/os/FileUtils.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/os/FileUtils.java b/core/java/android/os/FileUtils.java index 215e836bf735..6c1445df74a0 100644 --- a/core/java/android/os/FileUtils.java +++ b/core/java/android/os/FileUtils.java @@ -28,6 +28,8 @@ import java.util.regex.Pattern; import java.util.zip.CRC32; import java.util.zip.CheckedInputStream; +import libcore.io.Os; +import libcore.io.StructStat; /** * Tools for managing files. Not for public consumption. @@ -52,8 +54,10 @@ public class FileUtils { /** * File status information. This class maps directly to the POSIX stat structure. + * @deprecated use {@link StructStat} instead. * @hide */ + @Deprecated public static final class FileStatus { public int dev; public int ino; @@ -77,7 +81,9 @@ public class FileUtils { * exists. * @return true if the file exists and false if it does not exist. If you do not have * permission to stat the file, then this method will return false. + * @deprecated use {@link Os#stat(String)} instead. */ + @Deprecated public static boolean getFileStatus(String path, FileStatus status) { StrictMode.noteDiskRead(); return getFileStatusNative(path, status); @@ -90,6 +96,10 @@ public class FileUtils { public static native int setPermissions(String file, int mode, int uid, int gid); + /** + * @deprecated use {@link Os#stat(String)} instead. + */ + @Deprecated public static native int getPermissions(String file, int[] outPermissions); public static native int setUMask(int mask); |