blob: 8ef368b48cdbdc021158b9f500e8343b6904c044 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
/* */ package StandardIO;
/* */
/* */ import java.io.File;
/* */ import java.io.OutputStream;
/* */ import java.io.PrintStream;
/* */ import javax.swing.JTextArea;
/* */
/* */ public class ModulusOutputStream extends PrintStream
/* */ {
/* */ private JTextArea textAreaToAppend;
/* */ private FileOutputArray output;
/* */
/* */ public ModulusOutputStream(OutputStream out, boolean autoFlush)
/* */ {
/* 22 */ super(out, autoFlush);
/* 23 */ this.output = new FileOutputArray();
/* */ }
/* */
/* */ public ModulusOutputStream(JTextArea append, OutputStream out, boolean autoFlush)
/* */ {
/* 30 */ super(out, autoFlush);
/* 31 */ this.textAreaToAppend = append;
/* 32 */ this.output = new FileOutputArray();
/* */ }
/* */
/* */ public void print(String s)
/* */ {
/* */ try
/* */ {
/* 41 */ this.textAreaToAppend.append(s);
/* 42 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 45 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void print(int s) {
/* */ try {
/* 51 */ this.textAreaToAppend.append(s);
/* 52 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 55 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void print(float s) {
/* */ try {
/* 61 */ this.textAreaToAppend.append(s);
/* 62 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 65 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void print(double s) {
/* */ try {
/* 71 */ this.textAreaToAppend.append(s);
/* 72 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 75 */ e.printStackTrace();
/* 76 */ this.output.append(s);
/* */ }
/* */ }
/* */
/* */ public void print(boolean s) {
/* */ try {
/* 82 */ this.textAreaToAppend.append(s);
/* 83 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 86 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void print(char s) {
/* */ try {
/* 92 */ this.textAreaToAppend.append(s);
/* 93 */ this.output.append(s);
/* */ }
/* */ catch (Exception e) {
/* 96 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* 100 */ public void print(char[] s) { print(new String(s)); }
/* */
/* */ public void println(String s)
/* */ {
/* */ try {
/* 105 */ this.textAreaToAppend.append(s + "\n");
/* 106 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 109 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void println(int s) {
/* */ try {
/* 115 */ this.textAreaToAppend.append(s + "\n");
/* 116 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 119 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void println(float s) {
/* */ try {
/* 125 */ this.textAreaToAppend.append(s + "\n");
/* 126 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 129 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void println(double s) {
/* */ try {
/* 135 */ this.textAreaToAppend.append(s + "\n");
/* 136 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 139 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void println(boolean s) {
/* */ try {
/* 145 */ this.textAreaToAppend.append(s + "\n");
/* 146 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 149 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void println(char s) {
/* */ try {
/* 155 */ this.textAreaToAppend.append(s + "\n");
/* 156 */ this.output.append(s + "\n");
/* */ }
/* */ catch (Exception e) {
/* 159 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* 163 */ public void println(char[] s) { println(new String(s)); }
/* */
/* */ public void silentPrint(String prnt) {
/* 166 */ this.output.append(prnt);
/* */ }
/* */ public void flushTo(File file) {
/* 169 */ this.output.flushToFile(file);
/* */ }
/* */ public void flushTo(String file) {
/* 172 */ this.output.flushToFile(file);
/* */ }
/* */ }
/* Location: Modulus.jar
* Qualified Name: StandardIO.ModulusOutputStream
* JD-Core Version: 0.6.2
*/
|