public class ch.qos.logback.core.encoder.LayoutWrappingEncoder<E> extends ch.qos.logback.core.encoder.EncoderBase<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.encoder.LayoutWrappingEncoder
super_class: ch.qos.logback.core.encoder.EncoderBase
{
protected ch.qos.logback.core.Layout<E> layout;
descriptor: Lch/qos/logback/core/Layout;
flags: (0x0004) ACC_PROTECTED
Signature: Lch/qos/logback/core/Layout<TE;>;
private java.nio.charset.Charset charset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0002) ACC_PRIVATE
ch.qos.logback.core.Appender<?> parent;
descriptor: Lch/qos/logback/core/Appender;
flags: (0x0000)
Signature: Lch/qos/logback/core/Appender<*>;
java.lang.Boolean immediateFlush;
descriptor: Ljava/lang/Boolean;
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.encoder.EncoderBase.<init>:()V
1: aload 0
aconst_null
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.immediateFlush:Ljava/lang/Boolean;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
public ch.qos.logback.core.Layout<E> getLayout();
descriptor: ()Lch/qos/logback/core/Layout;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
Signature: ()Lch/qos/logback/core/Layout<TE;>;
public void setLayout(ch.qos.logback.core.Layout<E>);
descriptor: (Lch/qos/logback/core/Layout;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 2 1 layout Lch/qos/logback/core/Layout<TE;>;
Signature: (Lch/qos/logback/core/Layout<TE;>;)V
MethodParameters:
Name Flags
layout
public java.nio.charset.Charset getCharset();
descriptor: ()Ljava/nio/charset/Charset;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.charset:Ljava/nio/charset/Charset;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
public void setCharset(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.charset:Ljava/nio/charset/Charset;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 2 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charset
public void setImmediateFlush(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "As of version 1.2.0 \"immediateFlush\" property should be set within the enclosing Appender."
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.addWarn:(Ljava/lang/String;)V
1: aload 0
ldc "Please move \"immediateFlush\" property into the enclosing appender."
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.addWarn:(Ljava/lang/String;)V
2: aload 0
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.immediateFlush:Ljava/lang/Boolean;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 4 1 immediateFlush Z
MethodParameters:
Name Flags
immediateFlush
public byte[] ();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 3: aload 0
aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
invokeinterface ch.qos.logback.core.Layout.getFileHeader:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.appendIfNotNull:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
4: aload 0
aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
invokeinterface ch.qos.logback.core.Layout.getPresentationHeader:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.appendIfNotNull:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
5: aload 1
invokevirtual java.lang.StringBuilder.length:()I
ifle 7
6: aload 1
getstatic ch.qos.logback.core.CoreConstants.LINE_SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.convertToBytes:(Ljava/lang/String;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
3 8 1 sb Ljava/lang/StringBuilder;
public byte[] ();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 3: aload 0
aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
invokeinterface ch.qos.logback.core.Layout.getPresentationFooter:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.appendIfNotNull:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
4: aload 0
aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
invokeinterface ch.qos.logback.core.Layout.getFileFooter:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.appendIfNotNull:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
5: aload 0
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.convertToBytes:(Ljava/lang/String;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
3 6 1 sb Ljava/lang/StringBuilder;
private byte[] convertToBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.charset:Ljava/nio/charset/Charset;
ifnonnull 2
1: aload 1
invokevirtual java.lang.String.getBytes:()[B
areturn
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.charset:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 3 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public byte[] encode();
descriptor: (Ljava/lang/Object;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.layout:Lch/qos/logback/core/Layout;
aload 1
invokeinterface ch.qos.logback.core.Layout.doLayout:(Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.convertToBytes:(Ljava/lang/String;)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 2 1 event TE;
1 2 2 txt Ljava/lang/String;
Signature: (TE;)[B
MethodParameters:
Name Flags
event
public boolean isStarted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.immediateFlush:Ljava/lang/Boolean;
ifnull 7
1: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.parent:Lch/qos/logback/core/Appender;
instanceof ch.qos.logback.core.OutputStreamAppender
ifeq 6
2: aload 0
new java.lang.StringBuilder
dup
ldc "Setting the \"immediateFlush\" property of the enclosing appender to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.immediateFlush:Ljava/lang/Boolean;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.addWarn:(Ljava/lang/String;)V
3: aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.parent:Lch/qos/logback/core/Appender;
checkcast ch.qos.logback.core.OutputStreamAppender
astore 1
start local 1 4: aload 1
aload 0
getfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.immediateFlush:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual ch.qos.logback.core.OutputStreamAppender.setImmediateFlush:(Z)V
end local 1 5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
ldc "Could not set the \"immediateFlush\" property of the enclosing appender."
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.addError:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.started:Z
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
4 5 1 parentOutputStreamAppender Lch/qos/logback/core/OutputStreamAppender<TE;>;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.started:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
private void appendIfNotNull(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 2
1: aload 1
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 3 1 sb Ljava/lang/StringBuilder;
0 3 2 s Ljava/lang/String;
MethodParameters:
Name Flags
sb
s
public void setParent(ch.qos.logback.core.Appender<?>);
descriptor: (Lch/qos/logback/core/Appender;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield ch.qos.logback.core.encoder.LayoutWrappingEncoder.parent:Lch/qos/logback/core/Appender;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/encoder/LayoutWrappingEncoder<TE;>;
0 2 1 parent Lch/qos/logback/core/Appender<*>;
Signature: (Lch/qos/logback/core/Appender<*>;)V
MethodParameters:
Name Flags
parent
}
Signature: <E:Ljava/lang/Object;>Lch/qos/logback/core/encoder/EncoderBase<TE;>;
SourceFile: "LayoutWrappingEncoder.java"