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 package java.io;
28 
29 import android.compat.annotation.UnsupportedAppUsage;
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public class File implements java.io.Serializable, java.lang.Comparable<java.io.File> {
33 
File(java.lang.String pathname, int prefixLength)34     private File(java.lang.String pathname, int prefixLength) {
35         throw new RuntimeException("Stub!");
36     }
37 
File(java.lang.String child, java.io.File parent)38     private File(java.lang.String child, java.io.File parent) {
39         throw new RuntimeException("Stub!");
40     }
41 
File(java.lang.String pathname)42     public File(java.lang.String pathname) {
43         throw new RuntimeException("Stub!");
44     }
45 
File(java.lang.String parent, java.lang.String child)46     public File(java.lang.String parent, java.lang.String child) {
47         throw new RuntimeException("Stub!");
48     }
49 
File(java.io.File parent, java.lang.String child)50     public File(java.io.File parent, java.lang.String child) {
51         throw new RuntimeException("Stub!");
52     }
53 
File(java.net.URI uri)54     public File(java.net.URI uri) {
55         throw new RuntimeException("Stub!");
56     }
57 
isInvalid()58     final boolean isInvalid() {
59         throw new RuntimeException("Stub!");
60     }
61 
getPrefixLength()62     int getPrefixLength() {
63         throw new RuntimeException("Stub!");
64     }
65 
getName()66     public java.lang.String getName() {
67         throw new RuntimeException("Stub!");
68     }
69 
getParent()70     public java.lang.String getParent() {
71         throw new RuntimeException("Stub!");
72     }
73 
getParentFile()74     public java.io.File getParentFile() {
75         throw new RuntimeException("Stub!");
76     }
77 
getPath()78     public java.lang.String getPath() {
79         throw new RuntimeException("Stub!");
80     }
81 
isAbsolute()82     public boolean isAbsolute() {
83         throw new RuntimeException("Stub!");
84     }
85 
getAbsolutePath()86     public java.lang.String getAbsolutePath() {
87         throw new RuntimeException("Stub!");
88     }
89 
getAbsoluteFile()90     public java.io.File getAbsoluteFile() {
91         throw new RuntimeException("Stub!");
92     }
93 
getCanonicalPath()94     public java.lang.String getCanonicalPath() throws java.io.IOException {
95         throw new RuntimeException("Stub!");
96     }
97 
getCanonicalFile()98     public java.io.File getCanonicalFile() throws java.io.IOException {
99         throw new RuntimeException("Stub!");
100     }
101 
slashify(java.lang.String path, boolean isDirectory)102     private static java.lang.String slashify(java.lang.String path, boolean isDirectory) {
103         throw new RuntimeException("Stub!");
104     }
105 
106     @Deprecated
toURL()107     public java.net.URL toURL() throws java.net.MalformedURLException {
108         throw new RuntimeException("Stub!");
109     }
110 
toURI()111     public java.net.URI toURI() {
112         throw new RuntimeException("Stub!");
113     }
114 
canRead()115     public boolean canRead() {
116         throw new RuntimeException("Stub!");
117     }
118 
canWrite()119     public boolean canWrite() {
120         throw new RuntimeException("Stub!");
121     }
122 
exists()123     public boolean exists() {
124         throw new RuntimeException("Stub!");
125     }
126 
isDirectory()127     public boolean isDirectory() {
128         throw new RuntimeException("Stub!");
129     }
130 
isFile()131     public boolean isFile() {
132         throw new RuntimeException("Stub!");
133     }
134 
isHidden()135     public boolean isHidden() {
136         throw new RuntimeException("Stub!");
137     }
138 
lastModified()139     public long lastModified() {
140         throw new RuntimeException("Stub!");
141     }
142 
length()143     public long length() {
144         throw new RuntimeException("Stub!");
145     }
146 
createNewFile()147     public boolean createNewFile() throws java.io.IOException {
148         throw new RuntimeException("Stub!");
149     }
150 
delete()151     public boolean delete() {
152         throw new RuntimeException("Stub!");
153     }
154 
deleteOnExit()155     public void deleteOnExit() {
156         throw new RuntimeException("Stub!");
157     }
158 
list()159     public java.lang.String[] list() {
160         throw new RuntimeException("Stub!");
161     }
162 
list(java.io.FilenameFilter filter)163     public java.lang.String[] list(java.io.FilenameFilter filter) {
164         throw new RuntimeException("Stub!");
165     }
166 
listFiles()167     public java.io.File[] listFiles() {
168         throw new RuntimeException("Stub!");
169     }
170 
listFiles(java.io.FilenameFilter filter)171     public java.io.File[] listFiles(java.io.FilenameFilter filter) {
172         throw new RuntimeException("Stub!");
173     }
174 
listFiles(java.io.FileFilter filter)175     public java.io.File[] listFiles(java.io.FileFilter filter) {
176         throw new RuntimeException("Stub!");
177     }
178 
mkdir()179     public boolean mkdir() {
180         throw new RuntimeException("Stub!");
181     }
182 
mkdirs()183     public boolean mkdirs() {
184         throw new RuntimeException("Stub!");
185     }
186 
renameTo(java.io.File dest)187     public boolean renameTo(java.io.File dest) {
188         throw new RuntimeException("Stub!");
189     }
190 
setLastModified(long time)191     public boolean setLastModified(long time) {
192         throw new RuntimeException("Stub!");
193     }
194 
setReadOnly()195     public boolean setReadOnly() {
196         throw new RuntimeException("Stub!");
197     }
198 
setWritable(boolean writable, boolean ownerOnly)199     public boolean setWritable(boolean writable, boolean ownerOnly) {
200         throw new RuntimeException("Stub!");
201     }
202 
setWritable(boolean writable)203     public boolean setWritable(boolean writable) {
204         throw new RuntimeException("Stub!");
205     }
206 
setReadable(boolean readable, boolean ownerOnly)207     public boolean setReadable(boolean readable, boolean ownerOnly) {
208         throw new RuntimeException("Stub!");
209     }
210 
setReadable(boolean readable)211     public boolean setReadable(boolean readable) {
212         throw new RuntimeException("Stub!");
213     }
214 
setExecutable(boolean executable, boolean ownerOnly)215     public boolean setExecutable(boolean executable, boolean ownerOnly) {
216         throw new RuntimeException("Stub!");
217     }
218 
setExecutable(boolean executable)219     public boolean setExecutable(boolean executable) {
220         throw new RuntimeException("Stub!");
221     }
222 
canExecute()223     public boolean canExecute() {
224         throw new RuntimeException("Stub!");
225     }
226 
listRoots()227     public static java.io.File[] listRoots() {
228         throw new RuntimeException("Stub!");
229     }
230 
getTotalSpace()231     public long getTotalSpace() {
232         throw new RuntimeException("Stub!");
233     }
234 
getFreeSpace()235     public long getFreeSpace() {
236         throw new RuntimeException("Stub!");
237     }
238 
getUsableSpace()239     public long getUsableSpace() {
240         throw new RuntimeException("Stub!");
241     }
242 
createTempFile( java.lang.String prefix, java.lang.String suffix, java.io.File directory)243     public static java.io.File createTempFile(
244             java.lang.String prefix, java.lang.String suffix, java.io.File directory)
245             throws java.io.IOException {
246         throw new RuntimeException("Stub!");
247     }
248 
createTempFile(java.lang.String prefix, java.lang.String suffix)249     public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix)
250             throws java.io.IOException {
251         throw new RuntimeException("Stub!");
252     }
253 
compareTo(java.io.File pathname)254     public int compareTo(java.io.File pathname) {
255         throw new RuntimeException("Stub!");
256     }
257 
equals(java.lang.Object obj)258     public boolean equals(java.lang.Object obj) {
259         throw new RuntimeException("Stub!");
260     }
261 
hashCode()262     public int hashCode() {
263         throw new RuntimeException("Stub!");
264     }
265 
toString()266     public java.lang.String toString() {
267         throw new RuntimeException("Stub!");
268     }
269 
writeObject(java.io.ObjectOutputStream s)270     private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
271         throw new RuntimeException("Stub!");
272     }
273 
readObject(java.io.ObjectInputStream s)274     private synchronized void readObject(java.io.ObjectInputStream s)
275             throws java.lang.ClassNotFoundException, java.io.IOException {
276         throw new RuntimeException("Stub!");
277     }
278 
toPath()279     public java.nio.file.Path toPath() {
280         throw new RuntimeException("Stub!");
281     }
282 
283     private static final long PATH_OFFSET;
284 
285     static {
286         PATH_OFFSET = 0;
287     }
288 
289     private static final long PREFIX_LENGTH_OFFSET;
290 
291     static {
292         PREFIX_LENGTH_OFFSET = 0;
293     }
294 
295     private static final sun.misc.Unsafe UNSAFE;
296 
297     static {
298         UNSAFE = null;
299     }
300 
301     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
302     private transient volatile java.nio.file.Path filePath;
303 
304     @UnsupportedAppUsage
305     private static final java.io.FileSystem fs;
306 
307     static {
308         fs = null;
309     }
310 
311     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
312     private final java.lang.String path;
313 
314     {
315         path = null;
316     }
317 
318     public static final java.lang.String pathSeparator;
319 
320     static {
321         pathSeparator = null;
322     }
323 
324     public static final char pathSeparatorChar;
325 
326     static {
327         pathSeparatorChar = 0;
328     }
329 
330     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
331     private final transient int prefixLength;
332 
333     {
334         prefixLength = 0;
335     }
336 
337     public static final java.lang.String separator;
338 
339     static {
340         separator = null;
341     }
342 
343     public static final char separatorChar;
344 
345     static {
346         separatorChar = 0;
347     }
348 
349     private static final long serialVersionUID = 301077366599181567L; // 0x42da4450e0de4ffL
350 
351     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
352     private transient java.io.File.PathStatus status;
353 
354     @SuppressWarnings({"unchecked", "deprecation", "all"})
355     private static enum PathStatus {
356         INVALID,
357         CHECKED;
358 
PathStatus()359         private PathStatus() {
360             throw new RuntimeException("Stub!");
361         }
362     }
363 
364     @SuppressWarnings({"unchecked", "deprecation", "all"})
365     private static class TempDirectory {
366 
TempDirectory()367         private TempDirectory() {
368             throw new RuntimeException("Stub!");
369         }
370 
generateFile( java.lang.String prefix, java.lang.String suffix, java.io.File dir)371         static java.io.File generateFile(
372                 java.lang.String prefix, java.lang.String suffix, java.io.File dir)
373                 throws java.io.IOException {
374             throw new RuntimeException("Stub!");
375         }
376     }
377 }
378