public class org.eclipse.jgit.util.io.AutoLFOutputStream extends java.io.OutputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.eclipse.jgit.util.io.AutoLFOutputStream
  super_class: java.io.OutputStream
{
  static final int BUFFER_SIZE;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 8000

  private final java.io.OutputStream out;
    descriptor: Ljava/io/OutputStream;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private int buf;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private byte[] binbuf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private byte[] onebytebuf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private int binbufcnt;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private boolean detectBinary;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private boolean isBinary;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  public void <init>(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // java.io.OutputStream out
         0: .line 87
            aload 0 /* this */
            aload 1 /* out */
            iconst_1
            invokespecial org.eclipse.jgit.util.io.AutoLFOutputStream.<init>:(Ljava/io/OutputStream;Z)V
         1: .line 88
            return
        end local 1 // java.io.OutputStream out
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0    2     1   out  Ljava/io/OutputStream;
    MethodParameters:
      Name  Flags
      out   

  public void <init>(java.io.OutputStream, boolean);
    descriptor: (Ljava/io/OutputStream;Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // java.io.OutputStream out
        start local 2 // boolean detectBinary
         0: .line 100
            aload 0 /* this */
            invokespecial java.io.OutputStream.<init>:()V
         1: .line 66
            aload 0 /* this */
            iconst_m1
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
         2: .line 68
            aload 0 /* this */
            sipush 8000
            newarray 8
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
         3: .line 70
            aload 0 /* this */
            iconst_1
            newarray 8
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.onebytebuf:[B
         4: .line 72
            aload 0 /* this */
            iconst_0
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
         5: .line 101
            aload 0 /* this */
            aload 1 /* out */
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
         6: .line 102
            aload 0 /* this */
            iload 2 /* detectBinary */
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.detectBinary:Z
         7: .line 103
            return
        end local 2 // boolean detectBinary
        end local 1 // java.io.OutputStream out
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    8     0          this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0    8     1           out  Ljava/io/OutputStream;
            0    8     2  detectBinary  Z
    MethodParameters:
              Name  Flags
      out           
      detectBinary  

  public void write(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // int b
         0: .line 108
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.onebytebuf:[B
            iconst_0
            iload 1 /* b */
            i2b
            bastore
         1: .line 109
            aload 0 /* this */
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.onebytebuf:[B
            iconst_0
            iconst_1
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.write:([BII)V
         2: .line 110
            return
        end local 1 // int b
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0    3     1     b  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public void write(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // byte[] b
         0: .line 115
            aload 0 /* this */
            aload 1 /* b */
            iconst_0
            aload 1 /* b */
            arraylength
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.buffer:([BII)I
            istore 2 /* overflow */
        start local 2 // int overflow
         1: .line 116
            iload 2 /* overflow */
            ifle 3
         2: .line 117
            aload 0 /* this */
            aload 1 /* b */
            aload 1 /* b */
            arraylength
            iload 2 /* overflow */
            isub
            iload 2 /* overflow */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.write:([BII)V
         3: .line 119
      StackMap locals: int
      StackMap stack:
            return
        end local 2 // int overflow
        end local 1 // byte[] b
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0    4     1         b  [B
            1    4     2  overflow  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     

  public void write(byte[], int, int);
    descriptor: ([BII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=10, args_size=4
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // byte[] b
        start local 2 // int startOff
        start local 3 // int startLen
         0: .line 125
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* startOff */
            iload 3 /* startLen */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.buffer:([BII)I
            istore 4 /* overflow */
        start local 4 // int overflow
         1: .line 126
            iload 4 /* overflow */
            ifge 3
         2: .line 127
            return
         3: .line 129
      StackMap locals: int
      StackMap stack:
            iload 2 /* startOff */
            iload 3 /* startLen */
            iadd
            iload 4 /* overflow */
            isub
            istore 5 /* off */
        start local 5 // int off
         4: .line 130
            iload 4 /* overflow */
            istore 6 /* len */
        start local 6 // int len
         5: .line 131
            iload 6 /* len */
            ifne 7
         6: .line 132
            return
         7: .line 134
      StackMap locals: int int
      StackMap stack:
            iload 5 /* off */
            istore 7 /* lastw */
        start local 7 // int lastw
         8: .line 135
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.isBinary:Z
            ifeq 11
         9: .line 136
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            aload 1 /* b */
            iload 5 /* off */
            iload 6 /* len */
            invokevirtual java.io.OutputStream.write:([BII)V
        10: .line 137
            return
        11: .line 139
      StackMap locals: int
      StackMap stack:
            iload 5 /* off */
            istore 8 /* i */
        start local 8 // int i
        12: goto 35
        13: .line 140
      StackMap locals: int
      StackMap stack:
            aload 1 /* b */
            iload 8 /* i */
            baload
            istore 9 /* c */
        start local 9 // byte c
        14: .line 141
            iload 9 /* c */
            bipush 13
            if_icmpne 20
        15: .line 143
            iload 7 /* lastw */
            iload 8 /* i */
            if_icmpge 17
        16: .line 144
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            aload 1 /* b */
            iload 7 /* lastw */
            iload 8 /* i */
            iload 7 /* lastw */
            isub
            invokevirtual java.io.OutputStream.write:([BII)V
        17: .line 146
      StackMap locals: int
      StackMap stack:
            iload 8 /* i */
            iconst_1
            iadd
            istore 7 /* lastw */
        18: .line 147
            aload 0 /* this */
            bipush 13
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
        19: .line 148
            goto 34
      StackMap locals:
      StackMap stack:
        20: iload 9 /* c */
            bipush 10
            if_icmpne 30
        21: .line 149
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
            bipush 13
            if_icmpne 26
        22: .line 150
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            bipush 10
            invokevirtual java.io.OutputStream.write:(I)V
        23: .line 151
            iload 8 /* i */
            iconst_1
            iadd
            istore 7 /* lastw */
        24: .line 152
            aload 0 /* this */
            iconst_m1
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
        25: .line 153
            goto 34
        26: .line 154
      StackMap locals:
      StackMap stack:
            iload 7 /* lastw */
            iload 8 /* i */
            iconst_1
            iadd
            if_icmpge 28
        27: .line 155
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            aload 1 /* b */
            iload 7 /* lastw */
            iload 8 /* i */
            iconst_1
            iadd
            iload 7 /* lastw */
            isub
            invokevirtual java.io.OutputStream.write:([BII)V
        28: .line 157
      StackMap locals:
      StackMap stack:
            iload 8 /* i */
            iconst_1
            iadd
            istore 7 /* lastw */
        29: .line 159
            goto 34
        30: .line 160
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
            bipush 13
            if_icmpne 33
        31: .line 161
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            bipush 13
            invokevirtual java.io.OutputStream.write:(I)V
        32: .line 162
            iload 8 /* i */
            istore 7 /* lastw */
        33: .line 164
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_m1
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
        end local 9 // byte c
        34: .line 139
      StackMap locals:
      StackMap stack:
            iinc 8 /* i */ 1
      StackMap locals:
      StackMap stack:
        35: iload 8 /* i */
            iload 5 /* off */
            iload 6 /* len */
            iadd
            if_icmplt 13
        end local 8 // int i
        36: .line 167
            iload 7 /* lastw */
            iload 5 /* off */
            iload 6 /* len */
            iadd
            if_icmpge 38
        37: .line 168
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            aload 1 /* b */
            iload 7 /* lastw */
            iload 5 /* off */
            iload 6 /* len */
            iadd
            iload 7 /* lastw */
            isub
            invokevirtual java.io.OutputStream.write:([BII)V
        38: .line 170
      StackMap locals:
      StackMap stack:
            return
        end local 7 // int lastw
        end local 6 // int len
        end local 5 // int off
        end local 4 // int overflow
        end local 3 // int startLen
        end local 2 // int startOff
        end local 1 // byte[] b
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   39     0      this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0   39     1         b  [B
            0   39     2  startOff  I
            0   39     3  startLen  I
            1   39     4  overflow  I
            4   39     5       off  I
            5   39     6       len  I
            8   39     7     lastw  I
           12   36     8         i  I
           14   34     9         c  B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      b         
      startOff  
      startLen  

  private int buffer(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=6, args_size=4
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 173
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            arraylength
            if_icmple 2
         1: .line 174
            iload 3 /* len */
            ireturn
         2: .line 176
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            arraylength
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            isub
            iload 3 /* len */
            invokestatic java.lang.Math.min:(II)I
            istore 4 /* copy */
        start local 4 // int copy
         3: .line 177
            aload 1 /* b */
            iload 2 /* off */
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            iload 4 /* copy */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         4: .line 178
            aload 0 /* this */
            dup
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            iload 4 /* copy */
            iadd
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
         5: .line 179
            iload 3 /* len */
            iload 4 /* copy */
            isub
            istore 5 /* remaining */
        start local 5 // int remaining
         6: .line 180
            iload 5 /* remaining */
            ifle 8
         7: .line 181
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.decideMode:()V
         8: .line 183
      StackMap locals: int int
      StackMap stack:
            iload 5 /* remaining */
            ireturn
        end local 5 // int remaining
        end local 4 // int copy
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    9     0       this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            0    9     1          b  [B
            0    9     2        off  I
            0    9     3        len  I
            3    9     4       copy  I
            6    9     5  remaining  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  private void decideMode();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=2, args_size=1
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
         0: .line 187
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.detectBinary:Z
            ifeq 3
         1: .line 188
            aload 0 /* this */
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            invokestatic org.eclipse.jgit.diff.RawText.isBinary:([BI)Z
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.isBinary:Z
         2: .line 189
            aload 0 /* this */
            iconst_0
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.detectBinary:Z
         3: .line 191
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            istore 1 /* cachedLen */
        start local 1 // int cachedLen
         4: .line 192
            aload 0 /* this */
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            arraylength
            iconst_1
            iadd
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
         5: .line 193
            aload 0 /* this */
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            iconst_0
            iload 1 /* cachedLen */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.write:([BII)V
         6: .line 194
            return
        end local 1 // int cachedLen
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    7     0       this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
            4    7     1  cachedLen  I
    Exceptions:
      throws java.io.IOException

  public void flush();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
         0: .line 199
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbufcnt:I
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.binbuf:[B
            arraylength
            if_icmpgt 2
         1: .line 200
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.decideMode:()V
         2: .line 202
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         3: .line 203
            return
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
         0: .line 208
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.util.io.AutoLFOutputStream.flush:()V
         1: .line 209
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
            bipush 13
            if_icmpne 4
         2: .line 210
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
            invokevirtual java.io.OutputStream.write:(I)V
         3: .line 211
            aload 0 /* this */
            iconst_m1
            putfield org.eclipse.jgit.util.io.AutoLFOutputStream.buf:I
         4: .line 213
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.util.io.AutoLFOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.close:()V
         5: .line 214
            return
        end local 0 // org.eclipse.jgit.util.io.AutoLFOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/eclipse/jgit/util/io/AutoLFOutputStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "AutoLFOutputStream.java"