final class com.google.common.io.ByteSource$SlicedByteSource extends com.google.common.io.ByteSource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.ByteSource$SlicedByteSource
super_class: com.google.common.io.ByteSource
{
final long offset;
descriptor: J
flags: (0x0010) ACC_FINAL
final long length;
descriptor: J
flags: (0x0010) ACC_FINAL
final com.google.common.io.ByteSource this$0;
descriptor: Lcom/google/common/io/ByteSource;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.google.common.io.ByteSource, long, long);
descriptor: (Lcom/google/common/io/ByteSource;JJ)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=4
start local 0 start local 2 start local 4 0: aload 0
aload 1
putfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
aload 0
invokespecial com.google.common.io.ByteSource.<init>:()V
1: lload 2
lconst_0
lcmp
iflt 2
iconst_1
goto 3
StackMap locals: com.google.common.io.ByteSource$SlicedByteSource com.google.common.io.ByteSource long long
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "offset (%s) may not be negative"
lload 2
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
4: lload 4
lconst_0
lcmp
iflt 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: ldc "length (%s) may not be negative"
lload 4
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
7: aload 0
lload 2
putfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
8: aload 0
lload 4
putfield com.google.common.io.ByteSource$SlicedByteSource.length:J
9: return
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
0 10 2 offset J
0 10 4 length J
MethodParameters:
Name Flags
this$0 final
offset
length
public java.io.InputStream openStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
invokevirtual com.google.common.io.ByteSource.openStream:()Ljava/io/InputStream;
invokevirtual com.google.common.io.ByteSource$SlicedByteSource.sliceStream:(Ljava/io/InputStream;)Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
Exceptions:
throws java.io.IOException
public java.io.InputStream openBufferedStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
invokevirtual com.google.common.io.ByteSource.openBufferedStream:()Ljava/io/InputStream;
invokevirtual com.google.common.io.ByteSource$SlicedByteSource.sliceStream:(Ljava/io/InputStream;)Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
Exceptions:
throws java.io.IOException
private java.io.InputStream sliceStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
lconst_0
lcmp
ifle 13
1: aload 1
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
invokestatic com.google.common.io.ByteStreams.skipUpTo:(Ljava/io/InputStream;J)J
lstore 2
start local 2 2: goto 10
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 4
start local 4 4: invokestatic com.google.common.io.Closer.create:()Lcom/google/common/io/Closer;
astore 5
start local 5 5: aload 5
aload 1
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
pop
6: aload 5
aload 4
invokevirtual com.google.common.io.Closer.rethrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
7: StackMap locals: com.google.common.io.ByteSource$SlicedByteSource java.io.InputStream top top java.lang.Throwable com.google.common.io.Closer
StackMap stack: java.lang.Throwable
astore 6
8: aload 5
invokevirtual com.google.common.io.Closer.close:()V
9: aload 6
athrow
end local 5 end local 4 start local 2 10: StackMap locals: com.google.common.io.ByteSource$SlicedByteSource java.io.InputStream long
StackMap stack:
lload 2
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
lcmp
ifge 13
11: aload 1
invokevirtual java.io.InputStream.close:()V
12: new java.io.ByteArrayInputStream
dup
iconst_0
newarray 8
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 2 13: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.length:J
invokestatic com.google.common.io.ByteStreams.limit:(Ljava/io/InputStream;J)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
0 14 1 in Ljava/io/InputStream;
2 3 2 skipped J
10 13 2 skipped J
4 10 4 e Ljava/lang/Throwable;
5 10 5 closer Lcom/google/common/io/Closer;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
6 7 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public com.google.common.io.ByteSource slice(long, long);
descriptor: (JJ)Lcom/google/common/io/ByteSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lconst_0
lcmp
iflt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "offset (%s) may not be negative"
lload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
3: lload 3
lconst_0
lcmp
iflt 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ldc "length (%s) may not be negative"
lload 3
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
6: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.length:J
lload 1
lsub
lstore 5
start local 5 7: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
lload 1
ladd
lload 3
lload 5
invokestatic java.lang.Math.min:(JJ)J
invokevirtual com.google.common.io.ByteSource.slice:(JJ)Lcom/google/common/io/ByteSource;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
0 8 1 offset J
0 8 3 length J
7 8 5 maxLength J
MethodParameters:
Name Flags
offset
length
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.length:J
lconst_0
lcmp
ifeq 1
aload 0
invokespecial com.google.common.io.ByteSource.isEmpty:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
Exceptions:
throws java.io.IOException
public com.google.common.base.Optional<java.lang.Long> sizeIfKnown();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
invokevirtual com.google.common.io.ByteSource.sizeIfKnown:()Lcom/google/common/base/Optional;
astore 1
start local 1 1: aload 1
invokevirtual com.google.common.base.Optional.isPresent:()Z
ifeq 5
2: aload 1
invokevirtual com.google.common.base.Optional.get:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lstore 2
start local 2 3: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
lload 2
invokestatic java.lang.Math.min:(JJ)J
lstore 4
start local 4 4: aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.length:J
lload 2
lload 4
lsub
invokestatic java.lang.Math.min:(JJ)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic com.google.common.base.Optional.of:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
end local 4 end local 2 5: StackMap locals: com.google.common.base.Optional
StackMap stack:
invokestatic com.google.common.base.Optional.absent:()Lcom/google/common/base/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
1 6 1 optionalUnslicedSize Lcom/google/common/base/Optional<Ljava/lang/Long;>;
3 5 2 unslicedSize J
4 5 4 off J
Signature: ()Lcom/google/common/base/Optional<Ljava/lang/Long;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.this$0:Lcom/google/common/io/ByteSource;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".slice("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.offset:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.google.common.io.ByteSource$SlicedByteSource.length:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteSource$SlicedByteSource;
}
SourceFile: "ByteSource.java"
NestHost: com.google.common.io.ByteSource
InnerClasses:
private final SlicedByteSource = com.google.common.io.ByteSource$SlicedByteSource of com.google.common.io.ByteSource