1 /*
2 * Copyright (c) 1996, 2012, 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 import java.nio.charset.Charset;
30 import java.util.Formatter;
31 import java.util.Locale;
32
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public class PrintWriter extends java.io.Writer {
35
PrintWriter(@ibcore.util.NonNull java.io.Writer out)36 public PrintWriter(@libcore.util.NonNull java.io.Writer out) { throw new RuntimeException("Stub!"); }
37
PrintWriter(@ibcore.util.NonNull java.io.Writer out, boolean autoFlush)38 public PrintWriter(@libcore.util.NonNull java.io.Writer out, boolean autoFlush) { throw new RuntimeException("Stub!"); }
39
PrintWriter(@ibcore.util.NonNull java.io.OutputStream out)40 public PrintWriter(@libcore.util.NonNull java.io.OutputStream out) { throw new RuntimeException("Stub!"); }
41
PrintWriter(@ibcore.util.NonNull java.io.OutputStream out, boolean autoFlush)42 public PrintWriter(@libcore.util.NonNull java.io.OutputStream out, boolean autoFlush) { throw new RuntimeException("Stub!"); }
43
PrintWriter(@ibcore.util.NonNull java.lang.String fileName)44 public PrintWriter(@libcore.util.NonNull java.lang.String fileName) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
45
PrintWriter(@ibcore.util.NonNull java.lang.String fileName, @libcore.util.NonNull java.lang.String csn)46 public PrintWriter(@libcore.util.NonNull java.lang.String fileName, @libcore.util.NonNull java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
47
PrintWriter(@ibcore.util.NonNull java.io.File file)48 public PrintWriter(@libcore.util.NonNull java.io.File file) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
49
PrintWriter(@ibcore.util.NonNull java.io.File file, @libcore.util.NonNull java.lang.String csn)50 public PrintWriter(@libcore.util.NonNull java.io.File file, @libcore.util.NonNull java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
51
flush()52 public void flush() { throw new RuntimeException("Stub!"); }
53
close()54 public void close() { throw new RuntimeException("Stub!"); }
55
checkError()56 public boolean checkError() { throw new RuntimeException("Stub!"); }
57
setError()58 protected void setError() { throw new RuntimeException("Stub!"); }
59
clearError()60 protected void clearError() { throw new RuntimeException("Stub!"); }
61
write(int c)62 public void write(int c) { throw new RuntimeException("Stub!"); }
63
write(char[] buf, int off, int len)64 public void write(char[] buf, int off, int len) { throw new RuntimeException("Stub!"); }
65
write(char[] buf)66 public void write(char[] buf) { throw new RuntimeException("Stub!"); }
67
write(@ibcore.util.NonNull java.lang.String s, int off, int len)68 public void write(@libcore.util.NonNull java.lang.String s, int off, int len) { throw new RuntimeException("Stub!"); }
69
write(@ibcore.util.NonNull java.lang.String s)70 public void write(@libcore.util.NonNull java.lang.String s) { throw new RuntimeException("Stub!"); }
71
print(boolean b)72 public void print(boolean b) { throw new RuntimeException("Stub!"); }
73
print(char c)74 public void print(char c) { throw new RuntimeException("Stub!"); }
75
print(int i)76 public void print(int i) { throw new RuntimeException("Stub!"); }
77
print(long l)78 public void print(long l) { throw new RuntimeException("Stub!"); }
79
print(float f)80 public void print(float f) { throw new RuntimeException("Stub!"); }
81
print(double d)82 public void print(double d) { throw new RuntimeException("Stub!"); }
83
print(char[] s)84 public void print(char[] s) { throw new RuntimeException("Stub!"); }
85
print(@ibcore.util.Nullable java.lang.String s)86 public void print(@libcore.util.Nullable java.lang.String s) { throw new RuntimeException("Stub!"); }
87
print(@ibcore.util.Nullable java.lang.Object obj)88 public void print(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
89
println()90 public void println() { throw new RuntimeException("Stub!"); }
91
println(boolean x)92 public void println(boolean x) { throw new RuntimeException("Stub!"); }
93
println(char x)94 public void println(char x) { throw new RuntimeException("Stub!"); }
95
println(int x)96 public void println(int x) { throw new RuntimeException("Stub!"); }
97
println(long x)98 public void println(long x) { throw new RuntimeException("Stub!"); }
99
println(float x)100 public void println(float x) { throw new RuntimeException("Stub!"); }
101
println(double x)102 public void println(double x) { throw new RuntimeException("Stub!"); }
103
println(char[] x)104 public void println(char[] x) { throw new RuntimeException("Stub!"); }
105
println(@ibcore.util.Nullable java.lang.String x)106 public void println(@libcore.util.Nullable java.lang.String x) { throw new RuntimeException("Stub!"); }
107
println(@ibcore.util.Nullable java.lang.Object x)108 public void println(@libcore.util.Nullable java.lang.Object x) { throw new RuntimeException("Stub!"); }
109
printf(@ibcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)110 @libcore.util.NonNull public java.io.PrintWriter printf(@libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
111
printf(@ibcore.util.Nullable java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)112 @libcore.util.NonNull public java.io.PrintWriter printf(@libcore.util.Nullable java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
113
format(@ibcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)114 @libcore.util.NonNull public java.io.PrintWriter format(@libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
115
format(@ibcore.util.Nullable java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args)116 @libcore.util.NonNull public java.io.PrintWriter format(@libcore.util.Nullable java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
117
append(@ibcore.util.Nullable java.lang.CharSequence csq)118 @libcore.util.NonNull public java.io.PrintWriter append(@libcore.util.Nullable java.lang.CharSequence csq) { throw new RuntimeException("Stub!"); }
119
append(@ibcore.util.Nullable java.lang.CharSequence csq, int start, int end)120 @libcore.util.NonNull public java.io.PrintWriter append(@libcore.util.Nullable java.lang.CharSequence csq, int start, int end) { throw new RuntimeException("Stub!"); }
121
append(char c)122 @libcore.util.NonNull public java.io.PrintWriter append(char c) { throw new RuntimeException("Stub!"); }
123
124 protected java.io.Writer out;
125 }
126