final class com.google.common.io.ByteSource$SlicedByteSource extends com.google.common.io.ByteSource
{
final long offset;
final long length;
final com.google.common.io.ByteSource this$0;
void <init>(com.google.common.io.ByteSource, long, long)
{
com.google.common.io.ByteSource$SlicedByteSource v;
long v, v;
byte v, v;
com.google.common.io.ByteSource v;
boolean v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v := @parameter: com.google.common.io.ByteSource;
v := @parameter: long;
v := @parameter: long;
v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0> = v;
specialinvoke v.<com.google.common.io.ByteSource: void <init>()>();
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, "offset (%s) may not be negative", v);
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, "length (%s) may not be negative", v);
v.<com.google.common.io.ByteSource$SlicedByteSource: long offset> = v;
v.<com.google.common.io.ByteSource$SlicedByteSource: long length> = v;
return;
}
public java.io.InputStream openStream() throws java.io.IOException
{
com.google.common.io.ByteSource$SlicedByteSource v;
com.google.common.io.ByteSource v;
java.io.InputStream v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0>;
v = virtualinvoke v.<com.google.common.io.ByteSource: java.io.InputStream openStream()>();
v = specialinvoke v.<com.google.common.io.ByteSource$SlicedByteSource: java.io.InputStream sliceStream(java.io.InputStream)>(v);
return v;
}
public java.io.InputStream openBufferedStream() throws java.io.IOException
{
com.google.common.io.ByteSource$SlicedByteSource v;
com.google.common.io.ByteSource v;
java.io.InputStream v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0>;
v = virtualinvoke v.<com.google.common.io.ByteSource: java.io.InputStream openBufferedStream()>();
v = specialinvoke v.<com.google.common.io.ByteSource$SlicedByteSource: java.io.InputStream sliceStream(java.io.InputStream)>(v);
return v;
}
private java.io.InputStream sliceStream(java.io.InputStream) throws java.io.IOException
{
java.lang.Throwable v;
byte[] v;
com.google.common.io.ByteSource$SlicedByteSource v;
long v, v, v, v, v;
java.lang.RuntimeException v;
byte v, v;
java.io.ByteArrayInputStream v;
com.google.common.io.Closer v;
java.io.InputStream v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v := @parameter: java.io.InputStream;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = v cmp 0L;
if v <= 0 goto label;
label:
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = staticinvoke <com.google.common.io.ByteStreams: long skipUpTo(java.io.InputStream,long)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <com.google.common.io.Closer: com.google.common.io.Closer create()>();
virtualinvoke v.<com.google.common.io.Closer: java.io.Closeable register(java.io.Closeable)>(v);
v = virtualinvoke v.<com.google.common.io.Closer: java.lang.RuntimeException rethrow(java.lang.Throwable)>(v);
throw v;
label:
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = v cmp v;
if v >= 0 goto label;
virtualinvoke v.<java.io.InputStream: void close()>();
v = new java.io.ByteArrayInputStream;
v = newarray (byte)[0];
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
return v;
label:
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long length>;
v = staticinvoke <com.google.common.io.ByteStreams: java.io.InputStream limit(java.io.InputStream,long)>(v, v);
return v;
catch java.lang.Throwable from label to label with label;
}
public com.google.common.io.ByteSource slice(long, long)
{
com.google.common.io.ByteSource$SlicedByteSource v;
long v, v, v, v, v, v, v;
byte v, v, v;
com.google.common.io.ByteSource v, v;
boolean v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v := @parameter: long;
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, "offset (%s) may not be negative", v);
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, "length (%s) may not be negative", v);
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long length>;
v = v - v;
v = v cmp 0L;
if v > 0 goto label;
v = staticinvoke <com.google.common.io.ByteSource: com.google.common.io.ByteSource empty()>();
goto label;
label:
v = v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0>;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = v + v;
v = staticinvoke <java.lang.Math: long min(long,long)>(v, v);
v = virtualinvoke v.<com.google.common.io.ByteSource: com.google.common.io.ByteSource slice(long,long)>(v, v);
label:
return v;
}
public boolean isEmpty() throws java.io.IOException
{
byte v;
com.google.common.io.ByteSource$SlicedByteSource v;
long v;
boolean v, v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long length>;
v = v cmp 0L;
if v == 0 goto label;
v = specialinvoke v.<com.google.common.io.ByteSource: boolean isEmpty()>();
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public com.google.common.base.Optional sizeIfKnown()
{
com.google.common.io.ByteSource$SlicedByteSource v;
long v, v, v, v, v, v;
java.lang.Long v;
com.google.common.base.Optional v, v, v;
java.lang.Object v;
com.google.common.io.ByteSource v;
boolean v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0>;
v = virtualinvoke v.<com.google.common.io.ByteSource: com.google.common.base.Optional sizeIfKnown()>();
v = virtualinvoke v.<com.google.common.base.Optional: boolean isPresent()>();
if v == 0 goto label;
v = virtualinvoke v.<com.google.common.base.Optional: java.lang.Object get()>();
v = virtualinvoke v.<java.lang.Long: long longValue()>();
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = staticinvoke <java.lang.Math: long min(long,long)>(v, v);
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long length>;
v = v - v;
v = staticinvoke <java.lang.Math: long min(long,long)>(v, v);
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v = staticinvoke <com.google.common.base.Optional: com.google.common.base.Optional of(java.lang.Object)>(v);
return v;
label:
v = staticinvoke <com.google.common.base.Optional: com.google.common.base.Optional absent()>();
return v;
}
public java.lang.String toString()
{
com.google.common.io.ByteSource$SlicedByteSource v;
long v, v;
int v, v;
java.lang.StringBuilder v;
java.lang.String v, v, v;
com.google.common.io.ByteSource v;
v := @this: com.google.common.io.ByteSource$SlicedByteSource;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: com.google.common.io.ByteSource this$0>;
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long offset>;
v = v.<com.google.common.io.ByteSource$SlicedByteSource: long length>;
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = virtualinvoke v.<java.lang.String: int length()>();
v = 50 + v;
specialinvoke v.<java.lang.StringBuilder: void <init>(int)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,long,long)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u.slice(\u, \u)");
return v;
}
}