ra.java
2.12 KB
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
import com.google.common.base.Preconditions;
import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;
import java.io.Writer;
import javax.annotation.Nullable;
public final class ra
extends Writer
{
private final Appendable a;
private boolean b;
public ra(Appendable paramAppendable)
{
this.a = ((Appendable)Preconditions.checkNotNull(paramAppendable));
}
private void a()
throws IOException
{
if (this.b) {
throw new IOException("Cannot write to a closed writer.");
}
}
public final Writer append(char paramChar)
throws IOException
{
a();
this.a.append(paramChar);
return this;
}
public final Writer append(@Nullable CharSequence paramCharSequence)
throws IOException
{
a();
this.a.append(paramCharSequence);
return this;
}
public final Writer append(@Nullable CharSequence paramCharSequence, int paramInt1, int paramInt2)
throws IOException
{
a();
this.a.append(paramCharSequence, paramInt1, paramInt2);
return this;
}
public final void close()
throws IOException
{
this.b = true;
if ((this.a instanceof Closeable)) {
((Closeable)this.a).close();
}
}
public final void flush()
throws IOException
{
a();
if ((this.a instanceof Flushable)) {
((Flushable)this.a).flush();
}
}
public final void write(int paramInt)
throws IOException
{
a();
this.a.append((char)paramInt);
}
public final void write(@Nullable String paramString)
throws IOException
{
a();
this.a.append(paramString);
}
public final void write(@Nullable String paramString, int paramInt1, int paramInt2)
throws IOException
{
a();
this.a.append(paramString, paramInt1, paramInt1 + paramInt2);
}
public final void write(char[] paramArrayOfChar, int paramInt1, int paramInt2)
throws IOException
{
a();
this.a.append(new String(paramArrayOfChar, paramInt1, paramInt2));
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/ra.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/