public abstract class com.google.common.io.ByteSink
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.io.ByteSink
super_class: java.lang.Object
{
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteSink;
public com.google.common.io.CharSink asCharSink(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSink;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.google.common.io.ByteSink$AsCharSink
dup
aload 0
aload 1
invokespecial com.google.common.io.ByteSink$AsCharSink.<init>:(Lcom/google/common/io/ByteSink;Ljava/nio/charset/Charset;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteSink;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charset
public abstract java.io.OutputStream openStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public java.io.OutputStream openBufferedStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.io.ByteSink.openStream:()Ljava/io/OutputStream;
astore 1
start local 1 1: aload 1
instanceof java.io.BufferedOutputStream
ifeq 3
2: aload 1
checkcast java.io.BufferedOutputStream
goto 4
3: StackMap locals: java.io.OutputStream
StackMap stack:
new java.io.BufferedOutputStream
dup
aload 1
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
4: StackMap locals:
StackMap stack: java.io.BufferedOutputStream
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/io/ByteSink;
1 5 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic com.google.common.io.Closer.create:()Lcom/google/common/io/Closer;
astore 2
start local 2 2: aload 2
aload 0
invokevirtual com.google.common.io.ByteSink.openStream:()Ljava/io/OutputStream;
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
checkcast java.io.OutputStream
astore 3
start local 3 3: aload 3
aload 1
invokevirtual java.io.OutputStream.write:([B)V
4: aload 3
invokevirtual java.io.OutputStream.flush:()V
end local 3 5: goto 11
StackMap locals: com.google.common.io.ByteSink byte[] com.google.common.io.Closer
StackMap stack: java.lang.Throwable
6: astore 3
start local 3 7: aload 2
aload 3
invokevirtual com.google.common.io.Closer.rethrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 3 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
9: aload 2
invokevirtual com.google.common.io.Closer.close:()V
10: aload 4
athrow
11: StackMap locals:
StackMap stack:
aload 2
invokevirtual com.google.common.io.Closer.close:()V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/google/common/io/ByteSink;
0 13 1 bytes [B
2 13 2 closer Lcom/google/common/io/Closer;
3 5 3 out Ljava/io/OutputStream;
7 8 3 e Ljava/lang/Throwable;
Exception table:
from to target type
2 5 6 Class java.lang.Throwable
2 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
public long writeFrom(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic com.google.common.io.Closer.create:()Lcom/google/common/io/Closer;
astore 2
start local 2 2: aload 2
aload 0
invokevirtual com.google.common.io.ByteSink.openStream:()Ljava/io/OutputStream;
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
checkcast java.io.OutputStream
astore 3
start local 3 3: aload 1
aload 3
invokestatic com.google.common.io.ByteStreams.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)J
lstore 4
start local 4 4: aload 3
invokevirtual java.io.OutputStream.flush:()V
5: lload 4
lstore 7
6: aload 2
invokevirtual com.google.common.io.Closer.close:()V
7: lload 7
lreturn
end local 4 end local 3 8: StackMap locals: com.google.common.io.ByteSink java.io.InputStream com.google.common.io.Closer
StackMap stack: java.lang.Throwable
astore 3
start local 3 9: aload 2
aload 3
invokevirtual com.google.common.io.Closer.rethrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 3 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
11: aload 2
invokevirtual com.google.common.io.Closer.close:()V
12: aload 6
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/google/common/io/ByteSink;
0 13 1 input Ljava/io/InputStream;
2 13 2 closer Lcom/google/common/io/Closer;
3 8 3 out Ljava/io/OutputStream;
4 8 4 written J
9 10 3 e Ljava/lang/Throwable;
Exception table:
from to target type
2 6 8 Class java.lang.Throwable
2 6 10 any
8 10 10 any
Exceptions:
throws java.io.IOException
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
input
}
SourceFile: "ByteSink.java"
NestMembers:
com.google.common.io.ByteSink$AsCharSink
InnerClasses:
private final AsCharSink = com.google.common.io.ByteSink$AsCharSink of com.google.common.io.ByteSink
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()