public final class com.google.common.io.FileBackedOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.FileBackedOutputStream
super_class: java.io.OutputStream
{
private final int fileThreshold;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean resetOnFinalize;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.io.ByteSource source;
descriptor: Lcom/google/common/io/ByteSource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.OutputStream out;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private com.google.common.io.FileBackedOutputStream$MemoryOutput memory;
descriptor: Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
flags: (0x0002) ACC_PRIVATE
private java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleTypeAnnotations:
FIELD
org.checkerframework.checker.nullness.qual.Nullable()
synchronized java.io.File getFile();
descriptor: ()Ljava/io/File;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/FileBackedOutputStream;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_0
invokespecial com.google.common.io.FileBackedOutputStream.<init>:(IZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/FileBackedOutputStream;
0 2 1 fileThreshold I
MethodParameters:
Name Flags
fileThreshold
public void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
iload 1
putfield com.google.common.io.FileBackedOutputStream.fileThreshold:I
2: aload 0
iload 2
putfield com.google.common.io.FileBackedOutputStream.resetOnFinalize:Z
3: aload 0
new com.google.common.io.FileBackedOutputStream$MemoryOutput
dup
invokespecial com.google.common.io.FileBackedOutputStream$MemoryOutput.<init>:()V
putfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
4: aload 0
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
putfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
5: iload 2
ifeq 10
6: aload 0
7: new com.google.common.io.FileBackedOutputStream$1
dup
aload 0
invokespecial com.google.common.io.FileBackedOutputStream$1.<init>:(Lcom/google/common/io/FileBackedOutputStream;)V
8: putfield com.google.common.io.FileBackedOutputStream.source:Lcom/google/common/io/ByteSource;
9: goto 13
10: StackMap locals: com.google.common.io.FileBackedOutputStream int int
StackMap stack:
aload 0
11: new com.google.common.io.FileBackedOutputStream$2
dup
aload 0
invokespecial com.google.common.io.FileBackedOutputStream$2.<init>:(Lcom/google/common/io/FileBackedOutputStream;)V
12: putfield com.google.common.io.FileBackedOutputStream.source:Lcom/google/common/io/ByteSource;
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/google/common/io/FileBackedOutputStream;
0 14 1 fileThreshold I
0 14 2 resetOnFinalize Z
MethodParameters:
Name Flags
fileThreshold
resetOnFinalize
public com.google.common.io.ByteSource asByteSource();
descriptor: ()Lcom/google/common/io/ByteSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.source:Lcom/google/common/io/ByteSource;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/FileBackedOutputStream;
private synchronized java.io.InputStream openInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
ifnull 2
1: new java.io.FileInputStream
dup
aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
2: StackMap locals:
StackMap stack:
new java.io.ByteArrayInputStream
dup
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.getBuffer:()[B
iconst_0
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.getCount:()I
invokespecial java.io.ByteArrayInputStream.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/FileBackedOutputStream;
Exceptions:
throws java.io.IOException
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.io.FileBackedOutputStream.close:()V
1: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
3: aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
ifnonnull 6
4: aload 0
new com.google.common.io.FileBackedOutputStream$MemoryOutput
dup
invokespecial com.google.common.io.FileBackedOutputStream$MemoryOutput.<init>:()V
putfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
5: goto 7
6: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.reset:()V
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
putfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
8: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
ifnull 13
9: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
astore 2
start local 2 10: aload 0
aconst_null
putfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
11: aload 2
invokevirtual java.io.File.delete:()Z
ifne 13
12: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Could not delete: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 13: StackMap locals:
StackMap stack:
aload 1
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
ifnonnull 17
15: aload 0
new com.google.common.io.FileBackedOutputStream$MemoryOutput
dup
invokespecial com.google.common.io.FileBackedOutputStream$MemoryOutput.<init>:()V
putfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
16: goto 18
17: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.reset:()V
18: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
putfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
19: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
ifnull 24
20: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
astore 2
start local 2 21: aload 0
aconst_null
putfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
22: aload 2
invokevirtual java.io.File.delete:()Z
ifne 24
23: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Could not delete: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/google/common/io/FileBackedOutputStream;
10 13 2 deleteMe Ljava/io/File;
21 24 2 deleteMe Ljava/io/File;
Exception table:
from to target type
0 2 2 any
Exceptions:
throws java.io.IOException
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.google.common.io.FileBackedOutputStream.update:(I)V
1: aload 0
getfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/FileBackedOutputStream;
0 3 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[]);
descriptor: ([B)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual com.google.common.io.FileBackedOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/FileBackedOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
invokevirtual com.google.common.io.FileBackedOutputStream.update:(I)V
1: aload 0
getfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/FileBackedOutputStream;
0 3 1 b [B
0 3 2 off I
0 3 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/FileBackedOutputStream;
Exceptions:
throws java.io.IOException
public synchronized void flush();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/FileBackedOutputStream;
Exceptions:
throws java.io.IOException
private void update(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
ifnonnull 10
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.getCount:()I
iload 1
iadd
aload 0
getfield com.google.common.io.FileBackedOutputStream.fileThreshold:I
if_icmple 10
1: ldc "FileBackedOutputStream"
aconst_null
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 2: aload 0
getfield com.google.common.io.FileBackedOutputStream.resetOnFinalize:Z
ifeq 4
3: aload 2
invokevirtual java.io.File.deleteOnExit:()V
4: StackMap locals: java.io.File
StackMap stack:
new java.io.FileOutputStream
dup
aload 2
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 3
start local 3 5: aload 3
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.getBuffer:()[B
iconst_0
aload 0
getfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
invokevirtual com.google.common.io.FileBackedOutputStream$MemoryOutput.getCount:()I
invokevirtual java.io.FileOutputStream.write:([BII)V
6: aload 3
invokevirtual java.io.FileOutputStream.flush:()V
7: aload 0
aload 3
putfield com.google.common.io.FileBackedOutputStream.out:Ljava/io/OutputStream;
8: aload 0
aload 2
putfield com.google.common.io.FileBackedOutputStream.file:Ljava/io/File;
9: aload 0
aconst_null
putfield com.google.common.io.FileBackedOutputStream.memory:Lcom/google/common/io/FileBackedOutputStream$MemoryOutput;
end local 3 end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/io/FileBackedOutputStream;
0 11 1 len I
2 10 2 temp Ljava/io/File;
5 10 3 transfer Ljava/io/FileOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
len
}
SourceFile: "FileBackedOutputStream.java"
NestMembers:
com.google.common.io.FileBackedOutputStream$1 com.google.common.io.FileBackedOutputStream$2 com.google.common.io.FileBackedOutputStream$MemoryOutput
InnerClasses:
com.google.common.io.FileBackedOutputStream$1
com.google.common.io.FileBackedOutputStream$2
private MemoryOutput = com.google.common.io.FileBackedOutputStream$MemoryOutput of com.google.common.io.FileBackedOutputStream
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()