1 /* 2 * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.io; 27 28 import dalvik.annotation.compat.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public final class FileDescriptor { 32 FileDescriptor()33 public FileDescriptor() { 34 throw new RuntimeException("Stub!"); 35 } 36 FileDescriptor(int descriptor)37 private FileDescriptor(int descriptor) { 38 throw new RuntimeException("Stub!"); 39 } 40 valid()41 public boolean valid() { 42 throw new RuntimeException("Stub!"); 43 } 44 sync()45 public native void sync() throws java.io.SyncFailedException; 46 47 @UnsupportedAppUsage getInt$()48 public int getInt$() { 49 throw new RuntimeException("Stub!"); 50 } 51 52 @UnsupportedAppUsage setInt$(int fd)53 public void setInt$(int fd) { 54 throw new RuntimeException("Stub!"); 55 } 56 getOwnerId$()57 public long getOwnerId$() { 58 throw new RuntimeException("Stub!"); 59 } 60 setOwnerId$(long newOwnerId)61 public void setOwnerId$(long newOwnerId) { 62 throw new RuntimeException("Stub!"); 63 } 64 release$()65 public java.io.FileDescriptor release$() { 66 throw new RuntimeException("Stub!"); 67 } 68 69 @UnsupportedAppUsage isSocket$()70 public boolean isSocket$() { 71 throw new RuntimeException("Stub!"); 72 } 73 dupFd(int fd)74 private static java.io.FileDescriptor dupFd(int fd) { 75 throw new RuntimeException("Stub!"); 76 } 77 isSocket(int descriptor)78 private static native boolean isSocket(int descriptor); 79 80 public static final long NO_OWNER = 0L; // 0x0L 81 82 @UnsupportedAppUsage 83 private int descriptor; 84 85 public static final java.io.FileDescriptor err; 86 87 static { 88 err = null; 89 } 90 91 public static final java.io.FileDescriptor in; 92 93 static { 94 in = null; 95 } 96 97 public static final java.io.FileDescriptor out; 98 99 static { 100 out = null; 101 } 102 103 private long ownerId = 0L; // 0x0L 104 } 105