public class org.h2.store.FileStoreInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.h2.store.FileStoreInputStream
  super_class: java.io.InputStream
{
  private org.h2.store.FileStore store;
    descriptor: Lorg/h2/store/FileStore;
    flags: (0x0002) ACC_PRIVATE

  private final org.h2.store.Data page;
    descriptor: Lorg/h2/store/Data;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

  private final org.h2.tools.CompressTool compress;
    descriptor: Lorg/h2/tools/CompressTool;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

  private final boolean alwaysClose;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(org.h2.store.FileStore, org.h2.store.DataHandler, boolean, boolean);
    descriptor: (Lorg/h2/store/FileStore;Lorg/h2/store/DataHandler;ZZ)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=6, args_size=5
        start local 0 // org.h2.store.FileStoreInputStream this
        start local 1 // org.h2.store.FileStore store
        start local 2 // org.h2.store.DataHandler handler
        start local 3 // boolean compression
        start local 4 // boolean alwaysClose
         0: .line 27
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 29
            aload 0 /* this */
            aload 1 /* store */
            putfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
         2: .line 30
            aload 0 /* this */
            iload 4 /* alwaysClose */
            putfield org.h2.store.FileStoreInputStream.alwaysClose:Z
         3: .line 31
            iload 3 /* compression */
            ifeq 6
         4: .line 32
            aload 0 /* this */
            invokestatic org.h2.tools.CompressTool.getInstance:()Lorg/h2/tools/CompressTool;
            putfield org.h2.store.FileStoreInputStream.compress:Lorg/h2/tools/CompressTool;
         5: .line 33
            goto 7
         6: .line 34
      StackMap locals: org.h2.store.FileStoreInputStream org.h2.store.FileStore org.h2.store.DataHandler int int
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.h2.store.FileStoreInputStream.compress:Lorg/h2/tools/CompressTool;
         7: .line 36
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* handler */
            bipush 16
            iconst_1
            invokestatic org.h2.store.Data.create:(Lorg/h2/store/DataHandler;IZ)Lorg/h2/store/Data;
            putfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
         8: .line 38
            aload 1 /* store */
            invokevirtual org.h2.store.FileStore.length:()J
            ldc 48
            lcmp
            ifgt 11
         9: .line 39
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.close:()V
        10: .line 40
            goto 15
        11: .line 41
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.fillBuffer:()V
        12: .line 43
            goto 15
      StackMap locals:
      StackMap stack: java.io.IOException
        13: astore 5 /* e */
        start local 5 // java.io.IOException e
        14: .line 44
            aload 5 /* e */
            aload 1 /* store */
            getfield org.h2.store.FileStore.name:Ljava/lang/String;
            invokestatic org.h2.message.DbException.convertIOException:(Ljava/io/IOException;Ljava/lang/String;)Lorg/h2/message/DbException;
            athrow
        end local 5 // java.io.IOException e
        15: .line 46
      StackMap locals:
      StackMap stack:
            return
        end local 4 // boolean alwaysClose
        end local 3 // boolean compression
        end local 2 // org.h2.store.DataHandler handler
        end local 1 // org.h2.store.FileStore store
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   16     0         this  Lorg/h2/store/FileStoreInputStream;
            0   16     1        store  Lorg/h2/store/FileStore;
            0   16     2      handler  Lorg/h2/store/DataHandler;
            0   16     3  compression  Z
            0   16     4  alwaysClose  Z
           14   15     5            e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           8    12      13  Class java.io.IOException
    MethodParameters:
             Name  Flags
      store        
      handler      
      compression  
      alwaysClose  

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.h2.store.FileStoreInputStream this
         0: .line 50
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            ifgt 1
            iconst_0
            goto 2
      StackMap locals:
      StackMap stack:
         1: aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
      StackMap locals:
      StackMap stack: int
         2: ireturn
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/store/FileStoreInputStream;

  public int read(byte[]);
    descriptor: ([B)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.h2.store.FileStoreInputStream this
        start local 1 // byte[] buff
         0: .line 55
            aload 0 /* this */
            aload 1 /* buff */
            iconst_0
            aload 1 /* buff */
            arraylength
            invokevirtual org.h2.store.FileStoreInputStream.read:([BII)I
            ireturn
        end local 1 // byte[] buff
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/store/FileStoreInputStream;
            0    1     1  buff  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      buff  

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=6, args_size=4
        start local 0 // org.h2.store.FileStoreInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 60
            iload 3 /* len */
            ifne 2
         1: .line 61
            iconst_0
            ireturn
         2: .line 63
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 4 /* read */
        start local 4 // int read
         3: .line 64
            goto 10
         4: .line 65
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual org.h2.store.FileStoreInputStream.readBlock:([BII)I
            istore 5 /* r */
        start local 5 // int r
         5: .line 66
            iload 5 /* r */
            ifge 7
         6: .line 67
            goto 11
         7: .line 69
      StackMap locals: int
      StackMap stack:
            iload 4 /* read */
            iload 5 /* r */
            iadd
            istore 4 /* read */
         8: .line 70
            iload 2 /* off */
            iload 5 /* r */
            iadd
            istore 2 /* off */
         9: .line 71
            iload 3 /* len */
            iload 5 /* r */
            isub
            istore 3 /* len */
        end local 5 // int r
        10: .line 64
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifgt 4
        11: .line 73
      StackMap locals:
      StackMap stack:
            iload 4 /* read */
            ifne 12
            iconst_m1
            goto 13
      StackMap locals:
      StackMap stack:
        12: iload 4 /* read */
      StackMap locals:
      StackMap stack: int
        13: ireturn
        end local 4 // int read
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   14     0  this  Lorg/h2/store/FileStoreInputStream;
            0   14     1     b  [B
            0   14     2   off  I
            0   14     3   len  I
            3   14     4  read  I
            5   10     5     r  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  private int readBlock(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=5, args_size=4
        start local 0 // org.h2.store.FileStoreInputStream this
        start local 1 // byte[] buff
        start local 2 // int off
        start local 3 // int len
         0: .line 77
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.fillBuffer:()V
         1: .line 78
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.endOfFile:Z
            ifeq 3
         2: .line 79
            iconst_m1
            ireturn
         3: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            iload 3 /* len */
            invokestatic java.lang.Math.min:(II)I
            istore 4 /* l */
        start local 4 // int l
         4: .line 82
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            aload 1 /* buff */
            iload 2 /* off */
            iload 4 /* l */
            invokevirtual org.h2.store.Data.read:([BII)V
         5: .line 83
            aload 0 /* this */
            dup
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            iload 4 /* l */
            isub
            putfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
         6: .line 84
            iload 4 /* l */
            ireturn
        end local 4 // int l
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] buff
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lorg/h2/store/FileStoreInputStream;
            0    7     1  buff  [B
            0    7     2   off  I
            0    7     3   len  I
            4    7     4     l  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      buff  
      off   
      len   

  private void fillBuffer();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=1
        start local 0 // org.h2.store.FileStoreInputStream this
         0: .line 88
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            ifgt 1
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.endOfFile:Z
            ifeq 2
         1: .line 89
      StackMap locals:
      StackMap stack:
            return
         2: .line 91
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.reset:()V
         3: .line 92
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            invokevirtual org.h2.store.FileStore.openFile:()V
         4: .line 93
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            invokevirtual org.h2.store.FileStore.length:()J
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            invokevirtual org.h2.store.FileStore.getFilePointer:()J
            lcmp
            ifne 7
         5: .line 94
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.close:()V
         6: .line 95
            return
         7: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.getBytes:()[B
            iconst_0
            bipush 16
            invokevirtual org.h2.store.FileStore.readFully:([BII)V
         8: .line 98
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.reset:()V
         9: .line 99
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readInt:()I
            putfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
        10: .line 100
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            ifge 13
        11: .line 101
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.close:()V
        12: .line 102
            return
        13: .line 104
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            invokevirtual org.h2.store.Data.checkCapacity:(I)V
        14: .line 106
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.compress:Lorg/h2/tools/CompressTool;
            ifnull 17
        15: .line 107
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            iconst_4
            invokevirtual org.h2.store.Data.checkCapacity:(I)V
        16: .line 108
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readInt:()I
            pop
        17: .line 110
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.length:()I
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            iadd
            invokevirtual org.h2.store.Data.setPos:(I)V
        18: .line 111
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.fillAligned:()V
        19: .line 112
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.length:()I
            bipush 16
            isub
            istore 1 /* len */
        start local 1 // int len
        20: .line 113
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.reset:()V
        21: .line 114
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readInt:()I
            pop
        22: .line 115
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.getBytes:()[B
            bipush 16
            iload 1 /* len */
            invokevirtual org.h2.store.FileStore.readFully:([BII)V
        23: .line 116
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.reset:()V
        24: .line 117
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readInt:()I
            pop
        25: .line 118
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.compress:Lorg/h2/tools/CompressTool;
            ifnull 33
        26: .line 119
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readInt:()I
            istore 2 /* uncompressed */
        start local 2 // int uncompressed
        27: .line 120
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            invokestatic org.h2.util.Utils.newBytes:(I)[B
            astore 3 /* buff */
        start local 3 // byte[] buff
        28: .line 121
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            aload 3 /* buff */
            iconst_0
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            invokevirtual org.h2.store.Data.read:([BII)V
        29: .line 122
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.reset:()V
        30: .line 123
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            iload 2 /* uncompressed */
            invokevirtual org.h2.store.Data.checkCapacity:(I)V
        31: .line 124
            aload 3 /* buff */
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.getBytes:()[B
            iconst_0
            invokestatic org.h2.tools.CompressTool.expand:([B[BI)V
        32: .line 125
            aload 0 /* this */
            iload 2 /* uncompressed */
            putfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
        end local 3 // byte[] buff
        end local 2 // int uncompressed
        33: .line 127
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.alwaysClose:Z
            ifeq 35
        34: .line 128
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            invokevirtual org.h2.store.FileStore.closeFile:()V
        35: .line 130
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int len
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   36     0          this  Lorg/h2/store/FileStoreInputStream;
           20   36     1           len  I
           27   33     2  uncompressed  I
           28   33     3          buff  [B
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // org.h2.store.FileStoreInputStream this
         0: .line 134
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            ifnull 8
         1: .line 136
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
            invokevirtual org.h2.store.FileStore.close:()V
         2: .line 137
            aload 0 /* this */
            iconst_1
            putfield org.h2.store.FileStoreInputStream.endOfFile:Z
         3: .line 138
            goto 7
      StackMap locals:
      StackMap stack: java.lang.Throwable
         4: astore 1
         5: .line 139
            aload 0 /* this */
            aconst_null
            putfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
         6: .line 140
            aload 1
            athrow
         7: .line 139
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.h2.store.FileStoreInputStream.store:Lorg/h2/store/FileStore;
         8: .line 142
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lorg/h2/store/FileStoreInputStream;
      Exception table:
        from    to  target  type
           1     4       4  any

  protected void finalize();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.h2.store.FileStoreInputStream this
         0: .line 146
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.close:()V
         1: .line 147
            return
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/h2/store/FileStoreInputStream;

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.h2.store.FileStoreInputStream this
         0: .line 151
            aload 0 /* this */
            invokevirtual org.h2.store.FileStoreInputStream.fillBuffer:()V
         1: .line 152
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.endOfFile:Z
            ifeq 3
         2: .line 153
            iconst_m1
            ireturn
         3: .line 155
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.FileStoreInputStream.page:Lorg/h2/store/Data;
            invokevirtual org.h2.store.Data.readByte:()B
            sipush 255
            iand
            istore 1 /* i */
        start local 1 // int i
         4: .line 156
            aload 0 /* this */
            dup
            getfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
            iconst_1
            isub
            putfield org.h2.store.FileStoreInputStream.remainingInBuffer:I
         5: .line 157
            iload 1 /* i */
            ireturn
        end local 1 // int i
        end local 0 // org.h2.store.FileStoreInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/h2/store/FileStoreInputStream;
            4    6     1     i  I
    Exceptions:
      throws java.io.IOException
}
SourceFile: "FileStoreInputStream.java"