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.lang;
28
29 import java.io.*;
30 import java.nio.channels.spi.SelectorProvider;
31 import java.nio.channels.Channel;
32 import java.util.Properties;
33 import java.util.PropertyPermission;
34 import java.util.Map;
35
36 @SuppressWarnings({"unchecked", "deprecation", "all"})
37 public final class System {
38
System()39 System() { throw new RuntimeException("Stub!"); }
40
setIn(java.io.InputStream in)41 public static void setIn(java.io.InputStream in) { throw new RuntimeException("Stub!"); }
42
setOut(java.io.PrintStream out)43 public static void setOut(java.io.PrintStream out) { throw new RuntimeException("Stub!"); }
44
setErr(java.io.PrintStream err)45 public static void setErr(java.io.PrintStream err) { throw new RuntimeException("Stub!"); }
46
console()47 public static java.io.Console console() { throw new RuntimeException("Stub!"); }
48
inheritedChannel()49 public static java.nio.channels.Channel inheritedChannel() throws java.io.IOException { throw new RuntimeException("Stub!"); }
50
setSecurityManager(java.lang.SecurityManager s)51 public static void setSecurityManager(java.lang.SecurityManager s) { throw new RuntimeException("Stub!"); }
52
getSecurityManager()53 public static java.lang.SecurityManager getSecurityManager() { throw new RuntimeException("Stub!"); }
54
currentTimeMillis()55 public static native long currentTimeMillis();
56
nanoTime()57 public static native long nanoTime();
58
arraycopy(java.lang.Object src, int srcPos, java.lang.Object dest, int destPos, int length)59 public static native void arraycopy(java.lang.Object src, int srcPos, java.lang.Object dest, int destPos, int length);
60
identityHashCode(java.lang.Object x)61 public static int identityHashCode(java.lang.Object x) { throw new RuntimeException("Stub!"); }
62
getProperties()63 public static java.util.Properties getProperties() { throw new RuntimeException("Stub!"); }
64
lineSeparator()65 public static java.lang.String lineSeparator() { throw new RuntimeException("Stub!"); }
66
setProperties(java.util.Properties props)67 public static void setProperties(java.util.Properties props) { throw new RuntimeException("Stub!"); }
68
getProperty(java.lang.String key)69 public static java.lang.String getProperty(java.lang.String key) { throw new RuntimeException("Stub!"); }
70
getProperty(java.lang.String key, java.lang.String def)71 public static java.lang.String getProperty(java.lang.String key, java.lang.String def) { throw new RuntimeException("Stub!"); }
72
setProperty(java.lang.String key, java.lang.String value)73 public static java.lang.String setProperty(java.lang.String key, java.lang.String value) { throw new RuntimeException("Stub!"); }
74
clearProperty(java.lang.String key)75 public static java.lang.String clearProperty(java.lang.String key) { throw new RuntimeException("Stub!"); }
76
getenv(java.lang.String name)77 public static java.lang.String getenv(java.lang.String name) { throw new RuntimeException("Stub!"); }
78
getenv()79 public static java.util.Map<java.lang.String,java.lang.String> getenv() { throw new RuntimeException("Stub!"); }
80
exit(int status)81 public static void exit(int status) { throw new RuntimeException("Stub!"); }
82
gc()83 public static void gc() { throw new RuntimeException("Stub!"); }
84
runFinalization()85 public static void runFinalization() { throw new RuntimeException("Stub!"); }
86
87 @Deprecated
runFinalizersOnExit(boolean value)88 public static void runFinalizersOnExit(boolean value) { throw new RuntimeException("Stub!"); }
89
load(java.lang.String filename)90 public static void load(java.lang.String filename) { throw new RuntimeException("Stub!"); }
91
loadLibrary(java.lang.String libname)92 public static void loadLibrary(java.lang.String libname) { throw new RuntimeException("Stub!"); }
93
mapLibraryName(java.lang.String libname)94 public static native java.lang.String mapLibraryName(java.lang.String libname);
95
96 public static final java.io.PrintStream err;
97 static { err = null; }
98
99 public static final java.io.InputStream in;
100 static { in = null; }
101
102 public static final java.io.PrintStream out;
103 static { out = null; }
104
105 }
106
107