public abstract class com.google.common.io.CharSink
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.io.CharSink
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/CharSink;
public abstract java.io.Writer openStream();
descriptor: ()Ljava/io/Writer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public java.io.Writer openBufferedStream();
descriptor: ()Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.io.CharSink.openStream:()Ljava/io/Writer;
astore 1
start local 1 1: aload 1
instanceof java.io.BufferedWriter
ifeq 3
2: aload 1
checkcast java.io.BufferedWriter
goto 4
3: StackMap locals: java.io.Writer
StackMap stack:
new java.io.BufferedWriter
dup
aload 1
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
4: StackMap locals:
StackMap stack: java.io.BufferedWriter
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/io/CharSink;
1 5 1 writer Ljava/io/Writer;
Exceptions:
throws java.io.IOException
public void write(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)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.CharSink.openStream:()Ljava/io/Writer;
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
checkcast java.io.Writer
astore 3
start local 3 3: aload 3
aload 1
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
4: aload 3
invokevirtual java.io.Writer.flush:()V
end local 3 5: goto 11
StackMap locals: com.google.common.io.CharSink java.lang.CharSequence 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/CharSink;
0 13 1 charSequence Ljava/lang/CharSequence;
2 13 2 closer Lcom/google/common/io/Closer;
3 5 3 out Ljava/io/Writer;
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
charSequence
public void writeLines(java.lang.Iterable<? extends java.lang.CharSequence>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.google.common.io.CharSink.writeLines:(Ljava/lang/Iterable;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/CharSink;
0 2 1 lines Ljava/lang/Iterable<+Ljava/lang/CharSequence;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Iterable<+Ljava/lang/CharSequence;>;)V
MethodParameters:
Name Flags
lines
public void writeLines(java.lang.Iterable<? extends java.lang.CharSequence>, java.lang.String);
descriptor: (Ljava/lang/Iterable;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
aload 2
invokevirtual com.google.common.io.CharSink.writeLines:(Ljava/util/Iterator;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/CharSink;
0 2 1 lines Ljava/lang/Iterable<+Ljava/lang/CharSequence;>;
0 2 2 lineSeparator Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Iterable<+Ljava/lang/CharSequence;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
lines
lineSeparator
public void writeLines(java.util.stream.Stream<? extends java.lang.CharSequence>);
descriptor: (Ljava/util/stream/Stream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.google.common.io.CharSink.writeLines:(Ljava/util/stream/Stream;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/CharSink;
0 2 1 lines Ljava/util/stream/Stream<+Ljava/lang/CharSequence;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/stream/Stream<+Ljava/lang/CharSequence;>;)V
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
lines
public void writeLines(java.util.stream.Stream<? extends java.lang.CharSequence>, java.lang.String);
descriptor: (Ljava/util/stream/Stream;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokeinterface java.util.stream.Stream.iterator:()Ljava/util/Iterator;
aload 2
invokevirtual com.google.common.io.CharSink.writeLines:(Ljava/util/Iterator;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/CharSink;
0 2 1 lines Ljava/util/stream/Stream<+Ljava/lang/CharSequence;>;
0 2 2 lineSeparator Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/stream/Stream<+Ljava/lang/CharSequence;>;Ljava/lang/String;)V
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
lines
lineSeparator
private void writeLines(java.util.Iterator<? extends java.lang.CharSequence>, java.lang.String);
descriptor: (Ljava/util/Iterator;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aconst_null
astore 3
aconst_null
astore 4
2: aload 0
invokevirtual com.google.common.io.CharSink.openBufferedStream:()Ljava/io/Writer;
astore 5
start local 5 3: goto 5
4: StackMap locals: java.lang.Throwable java.lang.Throwable java.io.Writer
StackMap stack:
aload 5
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
aload 2
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
6: aload 5
ifnull 12
aload 5
invokevirtual java.io.Writer.close:()V
goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 3
aload 5
ifnull 8
aload 5
invokevirtual java.io.Writer.close:()V
end local 5 StackMap locals:
StackMap stack:
8: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 4
aload 3
ifnonnull 10
aload 4
astore 3
goto 11
StackMap locals:
StackMap stack:
10: aload 3
aload 4
if_acmpeq 11
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 3
athrow
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/google/common/io/CharSink;
0 13 1 lines Ljava/util/Iterator<+Ljava/lang/CharSequence;>;
0 13 2 lineSeparator Ljava/lang/String;
3 8 5 out Ljava/io/Writer;
Exception table:
from to target type
3 6 7 any
2 9 9 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Iterator<+Ljava/lang/CharSequence;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
lines
lineSeparator
public long writeFrom(java.lang.Readable);
descriptor: (Ljava/lang/Readable;)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.CharSink.openStream:()Ljava/io/Writer;
invokevirtual com.google.common.io.Closer.register:(Ljava/io/Closeable;)Ljava/io/Closeable;
checkcast java.io.Writer
astore 3
start local 3 3: aload 1
aload 3
invokestatic com.google.common.io.CharStreams.copy:(Ljava/lang/Readable;Ljava/lang/Appendable;)J
lstore 4
start local 4 4: aload 3
invokevirtual java.io.Writer.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.CharSink java.lang.Readable 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/CharSink;
0 13 1 readable Ljava/lang/Readable;
2 13 2 closer Lcom/google/common/io/Closer;
3 8 3 out Ljava/io/Writer;
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
readable
}
SourceFile: "CharSink.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()