public abstract class org.springframework.util.StreamUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: org.springframework.util.StreamUtils
  super_class: java.lang.Object
{
  public static final int BUFFER_SIZE;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 4096

  private static final byte[] EMPTY_CONTENT;
    descriptor: [B
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 54
            iconst_0
            newarray 8
            putstatic org.springframework.util.StreamUtils.EMPTY_CONTENT:[B
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.springframework.util.StreamUtils this
         0: .line 47
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.springframework.util.StreamUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/springframework/util/StreamUtils;

  public static byte[] copyToByteArray(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)[B
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 65
            aload 0 /* in */
            ifnonnull 2
         1: .line 66
            iconst_0
            newarray 8
            areturn
         2: .line 69
      StackMap locals:
      StackMap stack:
            new java.io.ByteArrayOutputStream
            dup
            sipush 4096
            invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
            astore 1 /* out */
        start local 1 // java.io.ByteArrayOutputStream out
         3: .line 70
            aload 0 /* in */
            aload 1 /* out */
            invokestatic org.springframework.util.StreamUtils.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)I
            pop
         4: .line 71
            aload 1 /* out */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            areturn
        end local 1 // java.io.ByteArrayOutputStream out
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0    in  Ljava/io/InputStream;
            3    5     1   out  Ljava/io/ByteArrayOutputStream;
    Exceptions:
      throws java.io.IOException
    RuntimeVisibleParameterAnnotations: 
      0:
        org.springframework.lang.Nullable()
    MethodParameters:
      Name  Flags
      in    

  public static java.lang.String copyToString(java.io.InputStream, java.nio.charset.Charset);
    descriptor: (Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=6, args_size=2
        start local 0 // java.io.InputStream in
        start local 1 // java.nio.charset.Charset charset
         0: .line 83
            aload 0 /* in */
            ifnonnull 2
         1: .line 84
            ldc ""
            areturn
         2: .line 87
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            sipush 4096
            invokespecial java.lang.StringBuilder.<init>:(I)V
            astore 2 /* out */
        start local 2 // java.lang.StringBuilder out
         3: .line 88
            new java.io.InputStreamReader
            dup
            aload 0 /* in */
            aload 1 /* charset */
            invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
            astore 3 /* reader */
        start local 3 // java.io.InputStreamReader reader
         4: .line 89
            sipush 4096
            newarray 5
            astore 4 /* buffer */
        start local 4 // char[] buffer
         5: .line 91
            goto 7
        start local 5 // int charsRead
         6: .line 92
      StackMap locals: java.io.InputStream java.nio.charset.Charset java.lang.StringBuilder java.io.InputStreamReader char[] int
      StackMap stack:
            aload 2 /* out */
            aload 4 /* buffer */
            iconst_0
            iload 5 /* charsRead */
            invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
            pop
        end local 5 // int charsRead
         7: .line 91
      StackMap locals:
      StackMap stack:
            aload 3 /* reader */
            aload 4 /* buffer */
            invokevirtual java.io.InputStreamReader.read:([C)I
            dup
            istore 5 /* charsRead */
        start local 5 // int charsRead
         8: iconst_m1
            if_icmpne 6
         9: .line 94
            aload 2 /* out */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 5 // int charsRead
        end local 4 // char[] buffer
        end local 3 // java.io.InputStreamReader reader
        end local 2 // java.lang.StringBuilder out
        end local 1 // java.nio.charset.Charset charset
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   10     0         in  Ljava/io/InputStream;
            0   10     1    charset  Ljava/nio/charset/Charset;
            3   10     2        out  Ljava/lang/StringBuilder;
            4   10     3     reader  Ljava/io/InputStreamReader;
            5   10     4     buffer  [C
            6    7     5  charsRead  I
            8   10     5  charsRead  I
    Exceptions:
      throws java.io.IOException
    RuntimeVisibleParameterAnnotations: 
      0:
        org.springframework.lang.Nullable()
      1:
    MethodParameters:
         Name  Flags
      in       
      charset  

  public static java.lang.String copyToString(java.io.ByteArrayOutputStream, java.nio.charset.Charset);
    descriptor: (Ljava/io/ByteArrayOutputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // java.io.ByteArrayOutputStream baos
        start local 1 // java.nio.charset.Charset charset
         0: .line 106
            aload 0 /* baos */
            ldc "No ByteArrayOutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 107
            aload 1 /* charset */
            ldc "No Charset specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         2: .line 110
            aload 0 /* baos */
            aload 1 /* charset */
            invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
            invokevirtual java.io.ByteArrayOutputStream.toString:(Ljava/lang/String;)Ljava/lang/String;
         3: areturn
         4: .line 112
      StackMap locals:
      StackMap stack: java.io.UnsupportedEncodingException
            astore 2 /* ex */
        start local 2 // java.io.UnsupportedEncodingException ex
         5: .line 114
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Invalid charset name: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* charset */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 2 /* ex */
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.UnsupportedEncodingException ex
        end local 1 // java.nio.charset.Charset charset
        end local 0 // java.io.ByteArrayOutputStream baos
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    6     0     baos  Ljava/io/ByteArrayOutputStream;
            0    6     1  charset  Ljava/nio/charset/Charset;
            5    6     2       ex  Ljava/io/UnsupportedEncodingException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.UnsupportedEncodingException
    MethodParameters:
         Name  Flags
      baos     
      charset  

  public static void copy(byte[], java.io.OutputStream);
    descriptor: ([BLjava/io/OutputStream;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // byte[] in
        start local 1 // java.io.OutputStream out
         0: .line 126
            aload 0 /* in */
            ldc "No input byte array specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 127
            aload 1 /* out */
            ldc "No OutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         2: .line 129
            aload 1 /* out */
            aload 0 /* in */
            invokevirtual java.io.OutputStream.write:([B)V
         3: .line 130
            aload 1 /* out */
            invokevirtual java.io.OutputStream.flush:()V
         4: .line 131
            return
        end local 1 // java.io.OutputStream out
        end local 0 // byte[] in
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0    in  [B
            0    5     1   out  Ljava/io/OutputStream;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    
      out   

  public static void copy(java.lang.String, java.nio.charset.Charset, java.io.OutputStream);
    descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;Ljava/io/OutputStream;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // java.lang.String in
        start local 1 // java.nio.charset.Charset charset
        start local 2 // java.io.OutputStream out
         0: .line 142
            aload 0 /* in */
            ldc "No input String specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 143
            aload 1 /* charset */
            ldc "No Charset specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         2: .line 144
            aload 2 /* out */
            ldc "No OutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         3: .line 146
            new java.io.OutputStreamWriter
            dup
            aload 2 /* out */
            aload 1 /* charset */
            invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
            astore 3 /* writer */
        start local 3 // java.io.Writer writer
         4: .line 147
            aload 3 /* writer */
            aload 0 /* in */
            invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
         5: .line 148
            aload 3 /* writer */
            invokevirtual java.io.Writer.flush:()V
         6: .line 149
            return
        end local 3 // java.io.Writer writer
        end local 2 // java.io.OutputStream out
        end local 1 // java.nio.charset.Charset charset
        end local 0 // java.lang.String in
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    7     0       in  Ljava/lang/String;
            0    7     1  charset  Ljava/nio/charset/Charset;
            0    7     2      out  Ljava/io/OutputStream;
            4    7     3   writer  Ljava/io/Writer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
         Name  Flags
      in       
      charset  
      out      

  public static int copy(java.io.InputStream, java.io.OutputStream);
    descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // java.io.InputStream in
        start local 1 // java.io.OutputStream out
         0: .line 160
            aload 0 /* in */
            ldc "No InputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 161
            aload 1 /* out */
            ldc "No OutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         2: .line 163
            iconst_0
            istore 2 /* byteCount */
        start local 2 // int byteCount
         3: .line 164
            sipush 4096
            newarray 8
            astore 3 /* buffer */
        start local 3 // byte[] buffer
         4: .line 166
            goto 7
        start local 4 // int bytesRead
         5: .line 167
      StackMap locals: int byte[] int
      StackMap stack:
            aload 1 /* out */
            aload 3 /* buffer */
            iconst_0
            iload 4 /* bytesRead */
            invokevirtual java.io.OutputStream.write:([BII)V
         6: .line 168
            iload 2 /* byteCount */
            iload 4 /* bytesRead */
            iadd
            istore 2 /* byteCount */
        end local 4 // int bytesRead
         7: .line 166
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            aload 3 /* buffer */
            invokevirtual java.io.InputStream.read:([B)I
            dup
            istore 4 /* bytesRead */
        start local 4 // int bytesRead
         8: iconst_m1
            if_icmpne 5
         9: .line 170
            aload 1 /* out */
            invokevirtual java.io.OutputStream.flush:()V
        10: .line 171
            iload 2 /* byteCount */
            ireturn
        end local 4 // int bytesRead
        end local 3 // byte[] buffer
        end local 2 // int byteCount
        end local 1 // java.io.OutputStream out
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   11     0         in  Ljava/io/InputStream;
            0   11     1        out  Ljava/io/OutputStream;
            3   11     2  byteCount  I
            4   11     3     buffer  [B
            5    7     4  bytesRead  I
            8   11     4  bytesRead  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    
      out   

  public static long copyRange(java.io.InputStream, java.io.OutputStream, long, long);
    descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;JJ)J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=12, args_size=4
        start local 0 // java.io.InputStream in
        start local 1 // java.io.OutputStream out
        start local 2 // long start
        start local 4 // long end
         0: .line 188
            aload 0 /* in */
            ldc "No InputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 189
            aload 1 /* out */
            ldc "No OutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         2: .line 191
            aload 0 /* in */
            lload 2 /* start */
            invokevirtual java.io.InputStream.skip:(J)J
            lstore 6 /* skipped */
        start local 6 // long skipped
         3: .line 192
            lload 6 /* skipped */
            lload 2 /* start */
            lcmp
            ifge 5
         4: .line 193
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Skipped only "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            lload 6 /* skipped */
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " bytes out of "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            lload 2 /* start */
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " required"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 196
      StackMap locals: long
      StackMap stack:
            lload 4 /* end */
            lload 2 /* start */
            lsub
            lconst_1
            ladd
            lstore 8 /* bytesToCopy */
        start local 8 // long bytesToCopy
         6: .line 197
            ldc 4096
            lload 8 /* bytesToCopy */
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            newarray 8
            astore 10 /* buffer */
        start local 10 // byte[] buffer
         7: .line 198
            goto 17
         8: .line 199
      StackMap locals: long byte[]
      StackMap stack:
            aload 0 /* in */
            aload 10 /* buffer */
            invokevirtual java.io.InputStream.read:([B)I
            istore 11 /* bytesRead */
        start local 11 // int bytesRead
         9: .line 200
            iload 11 /* bytesRead */
            iconst_m1
            if_icmpne 11
        10: .line 201
            goto 18
        11: .line 203
      StackMap locals: int
      StackMap stack:
            iload 11 /* bytesRead */
            i2l
            lload 8 /* bytesToCopy */
            lcmp
            ifgt 15
        12: .line 204
            aload 1 /* out */
            aload 10 /* buffer */
            iconst_0
            iload 11 /* bytesRead */
            invokevirtual java.io.OutputStream.write:([BII)V
        13: .line 205
            lload 8 /* bytesToCopy */
            iload 11 /* bytesRead */
            i2l
            lsub
            lstore 8 /* bytesToCopy */
        14: .line 206
            goto 17
        15: .line 208
      StackMap locals:
      StackMap stack:
            aload 1 /* out */
            aload 10 /* buffer */
            iconst_0
            lload 8 /* bytesToCopy */
            l2i
            invokevirtual java.io.OutputStream.write:([BII)V
        16: .line 209
            lconst_0
            lstore 8 /* bytesToCopy */
        end local 11 // int bytesRead
        17: .line 198
      StackMap locals:
      StackMap stack:
            lload 8 /* bytesToCopy */
            lconst_0
            lcmp
            ifgt 8
        18: .line 212
      StackMap locals:
      StackMap stack:
            lload 4 /* end */
            lload 2 /* start */
            lsub
            lconst_1
            ladd
            lload 8 /* bytesToCopy */
            lsub
            lreturn
        end local 10 // byte[] buffer
        end local 8 // long bytesToCopy
        end local 6 // long skipped
        end local 4 // long end
        end local 2 // long start
        end local 1 // java.io.OutputStream out
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   19     0           in  Ljava/io/InputStream;
            0   19     1          out  Ljava/io/OutputStream;
            0   19     2        start  J
            0   19     4          end  J
            3   19     6      skipped  J
            6   19     8  bytesToCopy  J
            7   19    10       buffer  [B
            9   17    11    bytesRead  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      in     
      out    
      start  
      end    

  public static int drain(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=4, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 224
            aload 0 /* in */
            ldc "No InputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 225
            sipush 4096
            newarray 8
            astore 1 /* buffer */
        start local 1 // byte[] buffer
         2: .line 226
            iconst_m1
            istore 2 /* bytesRead */
        start local 2 // int bytesRead
         3: .line 227
            iconst_0
            istore 3 /* byteCount */
        start local 3 // int byteCount
         4: .line 228
            goto 6
         5: .line 229
      StackMap locals: byte[] int int
      StackMap stack:
            iload 3 /* byteCount */
            iload 2 /* bytesRead */
            iadd
            istore 3 /* byteCount */
         6: .line 228
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            aload 1 /* buffer */
            invokevirtual java.io.InputStream.read:([B)I
            dup
            istore 2 /* bytesRead */
            iconst_m1
            if_icmpne 5
         7: .line 231
            iload 3 /* byteCount */
            ireturn
        end local 3 // int byteCount
        end local 2 // int bytesRead
        end local 1 // byte[] buffer
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    8     0         in  Ljava/io/InputStream;
            2    8     1     buffer  [B
            3    8     2  bytesRead  I
            4    8     3  byteCount  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    

  public static java.io.InputStream emptyInput();
    descriptor: ()Ljava/io/InputStream;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 240
            new java.io.ByteArrayInputStream
            dup
            getstatic org.springframework.util.StreamUtils.EMPTY_CONTENT:[B
            invokespecial java.io.ByteArrayInputStream.<init>:([B)V
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static java.io.InputStream nonClosing(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 250
            aload 0 /* in */
            ldc "No InputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 251
            new org.springframework.util.StreamUtils$NonClosingInputStream
            dup
            aload 0 /* in */
            invokespecial org.springframework.util.StreamUtils$NonClosingInputStream.<init>:(Ljava/io/InputStream;)V
            areturn
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0    in  Ljava/io/InputStream;
    MethodParameters:
      Name  Flags
      in    

  public static java.io.OutputStream nonClosing(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)Ljava/io/OutputStream;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // java.io.OutputStream out
         0: .line 261
            aload 0 /* out */
            ldc "No OutputStream specified"
            invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
         1: .line 262
            new org.springframework.util.StreamUtils$NonClosingOutputStream
            dup
            aload 0 /* out */
            invokespecial org.springframework.util.StreamUtils$NonClosingOutputStream.<init>:(Ljava/io/OutputStream;)V
            areturn
        end local 0 // java.io.OutputStream out
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0   out  Ljava/io/OutputStream;
    MethodParameters:
      Name  Flags
      out   
}
SourceFile: "StreamUtils.java"
NestMembers:
  org.springframework.util.StreamUtils$NonClosingInputStream  org.springframework.util.StreamUtils$NonClosingOutputStream
InnerClasses:
  private NonClosingInputStream = org.springframework.util.StreamUtils$NonClosingInputStream of org.springframework.util.StreamUtils
  private NonClosingOutputStream = org.springframework.util.StreamUtils$NonClosingOutputStream of org.springframework.util.StreamUtils