1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2005, 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 final class Console implements java.io.Flushable {
33 
Console()34     private Console() {
35         throw new RuntimeException("Stub!");
36     }
37 
Console(java.io.InputStream inStream, java.io.OutputStream outStream)38     private Console(java.io.InputStream inStream, java.io.OutputStream outStream) {
39         throw new RuntimeException("Stub!");
40     }
41 
writer()42     public java.io.PrintWriter writer() {
43         throw new RuntimeException("Stub!");
44     }
45 
reader()46     public java.io.Reader reader() {
47         throw new RuntimeException("Stub!");
48     }
49 
format(java.lang.String fmt, java.lang.Object... args)50     public java.io.Console format(java.lang.String fmt, java.lang.Object... args) {
51         throw new RuntimeException("Stub!");
52     }
53 
printf(java.lang.String format, java.lang.Object... args)54     public java.io.Console printf(java.lang.String format, java.lang.Object... args) {
55         throw new RuntimeException("Stub!");
56     }
57 
readLine(java.lang.String fmt, java.lang.Object... args)58     public java.lang.String readLine(java.lang.String fmt, java.lang.Object... args) {
59         throw new RuntimeException("Stub!");
60     }
61 
readLine()62     public java.lang.String readLine() {
63         throw new RuntimeException("Stub!");
64     }
65 
readPassword(java.lang.String fmt, java.lang.Object... args)66     public char[] readPassword(java.lang.String fmt, java.lang.Object... args) {
67         throw new RuntimeException("Stub!");
68     }
69 
readPassword()70     public char[] readPassword() {
71         throw new RuntimeException("Stub!");
72     }
73 
flush()74     public void flush() {
75         throw new RuntimeException("Stub!");
76     }
77 
78     @UnsupportedAppUsage
encoding()79     private static native java.lang.String encoding();
80 
echo(boolean on)81     private static native boolean echo(boolean on) throws java.io.IOException;
82 
readline(boolean zeroOut)83     private char[] readline(boolean zeroOut) throws java.io.IOException {
84         throw new RuntimeException("Stub!");
85     }
86 
grow()87     private char[] grow() {
88         throw new RuntimeException("Stub!");
89     }
90 
console()91     public static java.io.Console console() {
92         throw new RuntimeException("Stub!");
93     }
94 
istty()95     private static native boolean istty();
96 
97     private static java.io.Console cons;
98 
99     private java.nio.charset.Charset cs;
100 
101     private static boolean echoOff;
102 
103     private java.util.Formatter formatter;
104 
105     private java.io.Writer out;
106 
107     private java.io.PrintWriter pw;
108 
109     private char[] rcb;
110 
111     private java.lang.Object readLock;
112 
113     private java.io.Reader reader;
114 
115     private java.lang.Object writeLock;
116 
117     @SuppressWarnings({"unchecked", "deprecation", "all"})
118     class LineReader extends java.io.Reader {
119 
LineReader(java.io.Reader in)120         LineReader(java.io.Reader in) {
121             throw new RuntimeException("Stub!");
122         }
123 
close()124         public void close() {
125             throw new RuntimeException("Stub!");
126         }
127 
ready()128         public boolean ready() throws java.io.IOException {
129             throw new RuntimeException("Stub!");
130         }
131 
read(char[] cbuf, int offset, int length)132         public int read(char[] cbuf, int offset, int length) throws java.io.IOException {
133             throw new RuntimeException("Stub!");
134         }
135 
136         private char[] cb;
137 
138         private java.io.Reader in;
139 
140         boolean leftoverLF;
141 
142         private int nChars;
143 
144         private int nextChar;
145     }
146 }
147