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