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 FileOutputStream extends java.io.OutputStream {
33 
FileOutputStream(java.lang.String name)34     public FileOutputStream(java.lang.String name) throws java.io.FileNotFoundException {
35         throw new RuntimeException("Stub!");
36     }
37 
FileOutputStream(java.lang.String name, boolean append)38     public FileOutputStream(java.lang.String name, boolean append)
39             throws java.io.FileNotFoundException {
40         throw new RuntimeException("Stub!");
41     }
42 
FileOutputStream(java.io.File file)43     public FileOutputStream(java.io.File file) throws java.io.FileNotFoundException {
44         throw new RuntimeException("Stub!");
45     }
46 
FileOutputStream(java.io.File file, boolean append)47     public FileOutputStream(java.io.File file, boolean append)
48             throws java.io.FileNotFoundException {
49         throw new RuntimeException("Stub!");
50     }
51 
FileOutputStream(java.io.FileDescriptor fdObj)52     public FileOutputStream(java.io.FileDescriptor fdObj) {
53         throw new RuntimeException("Stub!");
54     }
55 
FileOutputStream(java.io.FileDescriptor fdObj, boolean isFdOwner)56     public FileOutputStream(java.io.FileDescriptor fdObj, boolean isFdOwner) {
57         throw new RuntimeException("Stub!");
58     }
59 
open0(java.lang.String name, boolean append)60     private native void open0(java.lang.String name, boolean append)
61             throws java.io.FileNotFoundException;
62 
open(java.lang.String name, boolean append)63     private void open(java.lang.String name, boolean append) throws java.io.FileNotFoundException {
64         throw new RuntimeException("Stub!");
65     }
66 
write(int b)67     public void write(int b) throws java.io.IOException {
68         throw new RuntimeException("Stub!");
69     }
70 
write(byte[] b)71     public void write(byte[] b) throws java.io.IOException {
72         throw new RuntimeException("Stub!");
73     }
74 
write(byte[] b, int off, int len)75     public void write(byte[] b, int off, int len) throws java.io.IOException {
76         throw new RuntimeException("Stub!");
77     }
78 
close()79     public void close() throws java.io.IOException {
80         throw new RuntimeException("Stub!");
81     }
82 
getFD()83     public final java.io.FileDescriptor getFD() throws java.io.IOException {
84         throw new RuntimeException("Stub!");
85     }
86 
getChannel()87     public java.nio.channels.FileChannel getChannel() {
88         throw new RuntimeException("Stub!");
89     }
90 
finalize()91     protected void finalize() throws java.io.IOException {
92         throw new RuntimeException("Stub!");
93     }
94 
95     private final boolean append;
96 
97     {
98         append = false;
99     }
100 
101     @UnsupportedAppUsage
102     private java.nio.channels.FileChannel channel;
103 
104     private final java.lang.Object closeLock;
105 
106     {
107         closeLock = null;
108     }
109 
110     private volatile boolean closed = false;
111 
112     @UnsupportedAppUsage
113     private final java.io.FileDescriptor fd;
114 
115     {
116         fd = null;
117     }
118 
119     private final dalvik.system.CloseGuard guard;
120 
121     {
122         guard = null;
123     }
124 
125     private final boolean isFdOwner;
126 
127     {
128         isFdOwner = false;
129     }
130 
131     private final java.lang.String path;
132 
133     {
134         path = null;
135     }
136 
137     private final libcore.io.IoTracker tracker;
138 
139     {
140         tracker = null;
141     }
142 }
143