final class com.google.common.io.CharSequenceReader extends java.io.Reader
{
private java.lang.CharSequence seq;
private int pos;
private int mark;
public void <init>(java.lang.CharSequence)
{
java.lang.Object v;
java.lang.CharSequence v;
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
v := @parameter: java.lang.CharSequence;
specialinvoke v.<java.io.Reader: void <init>()>();
v = staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq> = v;
return;
}
private void checkOpen() throws java.io.IOException
{
java.io.IOException v;
java.lang.CharSequence v;
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
if v != null goto label;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String)>("reader closed");
throw v;
label:
return;
}
private boolean hasRemaining()
{
int v;
com.google.common.io.CharSequenceReader v;
boolean v;
v := @this: com.google.common.io.CharSequenceReader;
v = specialinvoke v.<com.google.common.io.CharSequenceReader: int remaining()>();
if v <= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private int remaining()
{
java.lang.CharSequence v, v;
int v, v, v;
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
v = interfaceinvoke v.<java.lang.CharSequence: int length()>();
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v = v - v;
return v;
}
public synchronized int read(java.nio.CharBuffer) throws java.io.IOException
{
java.lang.CharSequence v, v;
java.nio.CharBuffer v;
char v;
com.google.common.io.CharSequenceReader v;
int v, v, v, v, v, v, v;
boolean v;
v := @this: com.google.common.io.CharSequenceReader;
v := @parameter: java.nio.CharBuffer;
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = specialinvoke v.<com.google.common.io.CharSequenceReader: boolean hasRemaining()>();
if v != 0 goto label;
v = (int) -1;
return v;
label:
v = virtualinvoke v.<java.nio.CharBuffer: int remaining()>();
v = specialinvoke v.<com.google.common.io.CharSequenceReader: int remaining()>();
v = staticinvoke <java.lang.Math: int min(int,int)>(v, v);
v = 0;
label:
if v >= v goto label;
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v = v + 1;
v.<com.google.common.io.CharSequenceReader: int pos> = v;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
virtualinvoke v.<java.nio.CharBuffer: java.nio.CharBuffer put(char)>(v);
v = v + 1;
goto label;
label:
return v;
}
public synchronized int read() throws java.io.IOException
{
short v;
java.lang.CharSequence v, v;
int v, v;
com.google.common.io.CharSequenceReader v;
boolean v;
v := @this: com.google.common.io.CharSequenceReader;
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = specialinvoke v.<com.google.common.io.CharSequenceReader: boolean hasRemaining()>();
if v == 0 goto label;
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v = v + 1;
v.<com.google.common.io.CharSequenceReader: int pos> = v;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
goto label;
label:
v = -1;
label:
return v;
}
public synchronized int read(char[], int, int) throws java.io.IOException
{
com.google.common.io.CharSequenceReader v;
int v, v, v, v, v, v, v, v, v, v, v;
boolean v;
java.lang.CharSequence v, v;
char v;
char[] v;
v := @this: com.google.common.io.CharSequenceReader;
v := @parameter: char[];
v := @parameter: int;
v := @parameter: int;
v = v + v;
v = lengthof v;
staticinvoke <com.google.common.base.Preconditions: void checkPositionIndexes(int,int,int)>(v, v, v);
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = specialinvoke v.<com.google.common.io.CharSequenceReader: boolean hasRemaining()>();
if v != 0 goto label;
v = (int) -1;
return v;
label:
v = specialinvoke v.<com.google.common.io.CharSequenceReader: int remaining()>();
v = staticinvoke <java.lang.Math: int min(int,int)>(v, v);
v = 0;
label:
if v >= v goto label;
v = v + v;
v = v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq>;
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v = v + 1;
v.<com.google.common.io.CharSequenceReader: int pos> = v;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
v[v] = v;
v = v + 1;
goto label;
label:
return v;
}
public synchronized long skip(long) throws java.io.IOException
{
long v, v;
com.google.common.io.CharSequenceReader v;
byte v;
int v, v, v, v;
boolean v;
v := @this: com.google.common.io.CharSequenceReader;
v := @parameter: long;
v = v cmp 0L;
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.String,long)>(v, "n (%s) may not be negative", v);
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = specialinvoke v.<com.google.common.io.CharSequenceReader: int remaining()>();
v = staticinvoke <java.lang.Math: long min(long,long)>(v, v);
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v = v + v;
v.<com.google.common.io.CharSequenceReader: int pos> = v;
return v;
}
public synchronized boolean ready() throws java.io.IOException
{
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
return 1;
}
public boolean markSupported()
{
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
return 1;
}
public synchronized void mark(int) throws java.io.IOException
{
int v, v;
com.google.common.io.CharSequenceReader v;
boolean v;
v := @this: com.google.common.io.CharSequenceReader;
v := @parameter: int;
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.String,int)>(v, "readAheadLimit (%s) may not be negative", v);
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = v.<com.google.common.io.CharSequenceReader: int pos>;
v.<com.google.common.io.CharSequenceReader: int mark> = v;
return;
}
public synchronized void reset() throws java.io.IOException
{
int v;
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
specialinvoke v.<com.google.common.io.CharSequenceReader: void checkOpen()>();
v = v.<com.google.common.io.CharSequenceReader: int mark>;
v.<com.google.common.io.CharSequenceReader: int pos> = v;
return;
}
public synchronized void close() throws java.io.IOException
{
com.google.common.io.CharSequenceReader v;
v := @this: com.google.common.io.CharSequenceReader;
v.<com.google.common.io.CharSequenceReader: java.lang.CharSequence seq> = null;
return;
}
}