1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 
28 package java.io;
29 
30 import java.nio.file.Path;
31 import java.net.URI;
32 import java.net.MalformedURLException;
33 import java.net.URL;
34 import java.nio.file.FileSystems;
35 
36 @SuppressWarnings({"unchecked", "deprecation", "all"})
37 public class File implements java.io.Serializable, java.lang.Comparable<java.io.File> {
38 
File(@ibcore.util.NonNull java.lang.String pathname)39 public File(@libcore.util.NonNull java.lang.String pathname) { throw new RuntimeException("Stub!"); }
40 
File(@ibcore.util.Nullable java.lang.String parent, @libcore.util.NonNull java.lang.String child)41 public File(@libcore.util.Nullable java.lang.String parent, @libcore.util.NonNull java.lang.String child) { throw new RuntimeException("Stub!"); }
42 
File(@ibcore.util.Nullable java.io.File parent, @libcore.util.NonNull java.lang.String child)43 public File(@libcore.util.Nullable java.io.File parent, @libcore.util.NonNull java.lang.String child) { throw new RuntimeException("Stub!"); }
44 
File(@ibcore.util.NonNull java.net.URI uri)45 public File(@libcore.util.NonNull java.net.URI uri) { throw new RuntimeException("Stub!"); }
46 
getName()47 @libcore.util.NonNull public java.lang.String getName() { throw new RuntimeException("Stub!"); }
48 
getParent()49 @libcore.util.Nullable public java.lang.String getParent() { throw new RuntimeException("Stub!"); }
50 
getParentFile()51 @libcore.util.Nullable public java.io.File getParentFile() { throw new RuntimeException("Stub!"); }
52 
getPath()53 @libcore.util.NonNull public java.lang.String getPath() { throw new RuntimeException("Stub!"); }
54 
isAbsolute()55 public boolean isAbsolute() { throw new RuntimeException("Stub!"); }
56 
getAbsolutePath()57 @libcore.util.NonNull public java.lang.String getAbsolutePath() { throw new RuntimeException("Stub!"); }
58 
getAbsoluteFile()59 @libcore.util.NonNull public java.io.File getAbsoluteFile() { throw new RuntimeException("Stub!"); }
60 
getCanonicalPath()61 @libcore.util.NonNull public java.lang.String getCanonicalPath() throws java.io.IOException { throw new RuntimeException("Stub!"); }
62 
getCanonicalFile()63 @libcore.util.NonNull public java.io.File getCanonicalFile() throws java.io.IOException { throw new RuntimeException("Stub!"); }
64 
65 @Deprecated
toURL()66 @libcore.util.NonNull public java.net.URL toURL() throws java.net.MalformedURLException { throw new RuntimeException("Stub!"); }
67 
toURI()68 @libcore.util.NonNull public java.net.URI toURI() { throw new RuntimeException("Stub!"); }
69 
canRead()70 public boolean canRead() { throw new RuntimeException("Stub!"); }
71 
canWrite()72 public boolean canWrite() { throw new RuntimeException("Stub!"); }
73 
exists()74 public boolean exists() { throw new RuntimeException("Stub!"); }
75 
isDirectory()76 public boolean isDirectory() { throw new RuntimeException("Stub!"); }
77 
isFile()78 public boolean isFile() { throw new RuntimeException("Stub!"); }
79 
isHidden()80 public boolean isHidden() { throw new RuntimeException("Stub!"); }
81 
lastModified()82 public long lastModified() { throw new RuntimeException("Stub!"); }
83 
length()84 public long length() { throw new RuntimeException("Stub!"); }
85 
createNewFile()86 public boolean createNewFile() throws java.io.IOException { throw new RuntimeException("Stub!"); }
87 
delete()88 public boolean delete() { throw new RuntimeException("Stub!"); }
89 
deleteOnExit()90 public void deleteOnExit() { throw new RuntimeException("Stub!"); }
91 
list()92 public java.lang.@libcore.util.NonNull String @libcore.util.Nullable [] list() { throw new RuntimeException("Stub!"); }
93 
list(@ibcore.util.Nullable java.io.FilenameFilter filter)94 public java.lang.@libcore.util.NonNull String @libcore.util.Nullable [] list(@libcore.util.Nullable java.io.FilenameFilter filter) { throw new RuntimeException("Stub!"); }
95 
listFiles()96 public java.io.@libcore.util.NonNull File @libcore.util.Nullable [] listFiles() { throw new RuntimeException("Stub!"); }
97 
listFiles(@ibcore.util.Nullable java.io.FilenameFilter filter)98 public java.io.@libcore.util.NonNull File @libcore.util.Nullable [] listFiles(@libcore.util.Nullable java.io.FilenameFilter filter) { throw new RuntimeException("Stub!"); }
99 
listFiles(@ibcore.util.Nullable java.io.FileFilter filter)100 public java.io.@libcore.util.NonNull File @libcore.util.Nullable [] listFiles(@libcore.util.Nullable java.io.FileFilter filter) { throw new RuntimeException("Stub!"); }
101 
mkdir()102 public boolean mkdir() { throw new RuntimeException("Stub!"); }
103 
mkdirs()104 public boolean mkdirs() { throw new RuntimeException("Stub!"); }
105 
renameTo(@ibcore.util.NonNull java.io.File dest)106 public boolean renameTo(@libcore.util.NonNull java.io.File dest) { throw new RuntimeException("Stub!"); }
107 
setLastModified(long time)108 public boolean setLastModified(long time) { throw new RuntimeException("Stub!"); }
109 
setReadOnly()110 public boolean setReadOnly() { throw new RuntimeException("Stub!"); }
111 
setWritable(boolean writable, boolean ownerOnly)112 public boolean setWritable(boolean writable, boolean ownerOnly) { throw new RuntimeException("Stub!"); }
113 
setWritable(boolean writable)114 public boolean setWritable(boolean writable) { throw new RuntimeException("Stub!"); }
115 
setReadable(boolean readable, boolean ownerOnly)116 public boolean setReadable(boolean readable, boolean ownerOnly) { throw new RuntimeException("Stub!"); }
117 
setReadable(boolean readable)118 public boolean setReadable(boolean readable) { throw new RuntimeException("Stub!"); }
119 
setExecutable(boolean executable, boolean ownerOnly)120 public boolean setExecutable(boolean executable, boolean ownerOnly) { throw new RuntimeException("Stub!"); }
121 
setExecutable(boolean executable)122 public boolean setExecutable(boolean executable) { throw new RuntimeException("Stub!"); }
123 
canExecute()124 public boolean canExecute() { throw new RuntimeException("Stub!"); }
125 
listRoots()126 public static java.io.@libcore.util.NonNull File @libcore.util.NonNull [] listRoots() { throw new RuntimeException("Stub!"); }
127 
getTotalSpace()128 public long getTotalSpace() { throw new RuntimeException("Stub!"); }
129 
getFreeSpace()130 public long getFreeSpace() { throw new RuntimeException("Stub!"); }
131 
getUsableSpace()132 public long getUsableSpace() { throw new RuntimeException("Stub!"); }
133 
createTempFile(@ibcore.util.NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix, @libcore.util.Nullable java.io.File directory)134 @libcore.util.NonNull public static java.io.File createTempFile(@libcore.util.NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix, @libcore.util.Nullable java.io.File directory) throws java.io.IOException { throw new RuntimeException("Stub!"); }
135 
createTempFile(@ibcore.util.NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix)136 @libcore.util.NonNull public static java.io.File createTempFile(@libcore.util.NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix) throws java.io.IOException { throw new RuntimeException("Stub!"); }
137 
compareTo(@ibcore.util.NonNull java.io.File pathname)138 public int compareTo(@libcore.util.NonNull java.io.File pathname) { throw new RuntimeException("Stub!"); }
139 
equals(@ibcore.util.Nullable java.lang.Object obj)140 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
141 
hashCode()142 public int hashCode() { throw new RuntimeException("Stub!"); }
143 
toString()144 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
145 
toPath()146 @libcore.util.NonNull public java.nio.file.Path toPath() { throw new RuntimeException("Stub!"); }
147 
148 @libcore.util.NonNull public static final java.lang.String pathSeparator;
149 static { pathSeparator = null; }
150 
151 public static final char pathSeparatorChar;
152 static { pathSeparatorChar = 0; }
153 
154 @libcore.util.NonNull public static final java.lang.String separator;
155 static { separator = null; }
156 
157 public static final char separatorChar;
158 static { separatorChar = 0; }
159 }
160