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
27 package java.io;
28
29
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public final class FileDescriptor {
32
FileDescriptor()33 public FileDescriptor() { throw new RuntimeException("Stub!"); }
34
valid()35 public boolean valid() { throw new RuntimeException("Stub!"); }
36
sync()37 public native void sync() throws java.io.SyncFailedException;
38
39 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
getInt$()40 public int getInt$() { throw new RuntimeException("Stub!"); }
41
42 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
setInt$(int fd)43 public void setInt$(int fd) { throw new RuntimeException("Stub!"); }
44
getOwnerId$()45 public long getOwnerId$() { throw new RuntimeException("Stub!"); }
46
setOwnerId$(long newOwnerId)47 public void setOwnerId$(long newOwnerId) { throw new RuntimeException("Stub!"); }
48
release$()49 public java.io.FileDescriptor release$() { throw new RuntimeException("Stub!"); }
50
isSocket$()51 public boolean isSocket$() { throw new RuntimeException("Stub!"); }
52
53 public static final long NO_OWNER = 0L; // 0x0L
54
55 public static final java.io.FileDescriptor err;
56 static { err = null; }
57
58 public static final java.io.FileDescriptor in;
59 static { in = null; }
60
61 public static final java.io.FileDescriptor out;
62 static { out = null; }
63 }
64
65