LineReader.java
1.56 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
package com.google.common.io;
import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
import java.io.IOException;
import java.io.Reader;
import java.nio.CharBuffer;
import java.util.LinkedList;
import java.util.Queue;
import rd;
@Beta
public final class LineReader
{
private final Readable a;
private final Reader b;
private final char[] c = new char['က'];
private final CharBuffer d = CharBuffer.wrap(this.c);
private final Queue<String> e = new LinkedList();
private final rd f = new rd()
{
protected final void a(String paramAnonymousString)
{
LineReader.a(LineReader.this).add(paramAnonymousString);
}
};
public LineReader(Readable paramReadable)
{
this.a = ((Readable)Preconditions.checkNotNull(paramReadable));
if ((paramReadable instanceof Reader)) {}
for (paramReadable = (Reader)paramReadable;; paramReadable = null)
{
this.b = paramReadable;
return;
}
}
public final String readLine()
throws IOException
{
for (;;)
{
if (this.e.peek() == null)
{
this.d.clear();
if (this.b == null) {
break label70;
}
}
label70:
for (int i = this.b.read(this.c, 0, this.c.length); i == -1; i = this.a.read(this.d))
{
this.f.a();
return (String)this.e.poll();
}
this.f.a(this.c, i);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/io/LineReader.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/