public class javax.sql.rowset.serial.SerialBlob implements java.sql.Blob, java.io.Serializable, java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.sql.rowset.serial.SerialBlob
super_class: java.lang.Object
{
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.sql.Blob blob;
descriptor: Ljava/sql/Blob;
flags: (0x0002) ACC_PRIVATE
private long len;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long origLen;
descriptor: J
flags: (0x0002) ACC_PRIVATE
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -8144641928112860441
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
arraylength
i2l
putfield javax.sql.rowset.serial.SerialBlob.len:J
2: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
l2i
newarray 8
putfield javax.sql.rowset.serial.SerialBlob.buf:[B
3: iconst_0
istore 2
start local 2 4: goto 7
5: StackMap locals: javax.sql.rowset.serial.SerialBlob byte[] int
StackMap stack:
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
iload 2
aload 1
iload 2
baload
bastore
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
i2l
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lcmp
iflt 5
end local 2 8: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
putfield javax.sql.rowset.serial.SerialBlob.origLen:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 10 1 b [B
4 8 2 i I
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
b
public void <init>(java.sql.Blob);
descriptor: (Ljava/sql/Blob;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.sql.SQLException
dup
ldc "Cannot instantiate a SerialBlob object with a null Blob object"
invokespecial java.sql.SQLException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.sql.rowset.serial.SerialBlob java.sql.Blob
StackMap stack:
aload 0
aload 1
invokeinterface java.sql.Blob.length:()J
putfield javax.sql.rowset.serial.SerialBlob.len:J
4: aload 0
aload 1
lconst_1
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
l2i
invokeinterface java.sql.Blob.getBytes:(JI)[B
putfield javax.sql.rowset.serial.SerialBlob.buf:[B
5: aload 0
aload 1
putfield javax.sql.rowset.serial.SerialBlob.blob:Ljava/sql/Blob;
6: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
putfield javax.sql.rowset.serial.SerialBlob.origLen:J
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 8 1 blob Ljava/sql/Blob;
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
blob
public byte[] getBytes(long, int);
descriptor: (JI)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 3 0: iload 3
i2l
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lcmp
ifle 2
1: aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
l2i
istore 3
2: StackMap locals:
StackMap stack:
lload 1
lconst_1
lcmp
iflt 3
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lload 1
lsub
lconst_0
lcmp
ifge 4
3: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Invalid arguments: position cannot be less than 1 or greater than the length of the SerialBlob"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
lload 1
lconst_1
lsub
lstore 1
5: iload 3
newarray 8
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: goto 11
8: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
lload 1
l2i
baload
bastore
9: lload 1
lconst_1
ladd
lstore 1
10: iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 3
if_icmplt 8
end local 5 12: aload 4
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 13 1 pos J
0 13 3 length I
6 13 4 b [B
7 12 5 i I
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
pos
length
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialBlob;
Exceptions:
throws javax.sql.rowset.serial.SerialException
public java.io.InputStream getBinaryStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 1
start local 1 1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/sql/rowset/serial/SerialBlob;
1 2 1 stream Ljava/io/InputStream;
Exceptions:
throws javax.sql.rowset.serial.SerialException
public long position(byte[], long);
descriptor: ([BJ)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: lload 2
lconst_1
lcmp
iflt 1
lload 2
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lcmp
ifle 2
1: StackMap locals:
StackMap stack:
ldc -1
lreturn
2: StackMap locals:
StackMap stack:
lload 2
l2i
iconst_1
isub
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: aload 1
arraylength
i2l
lstore 6
start local 6 5: goto 13
6: StackMap locals: int int long
StackMap stack:
aload 1
iload 5
baload
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
iload 4
baload
if_icmpne 11
7: iload 5
iconst_1
iadd
i2l
lload 6
lcmp
ifne 9
8: iload 4
iconst_1
iadd
i2l
lload 6
lconst_1
lsub
lsub
lreturn
9: StackMap locals:
StackMap stack:
iinc 5 1
iinc 4 1
10: goto 13
StackMap locals:
StackMap stack:
11: aload 1
iload 5
baload
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
iload 4
baload
if_icmpeq 13
12: iinc 4 1
13: StackMap locals:
StackMap stack:
iload 4
i2l
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lcmp
iflt 6
14: ldc -1
lreturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 15 1 pattern [B
0 15 2 start J
3 15 4 pos I
4 15 5 i I
5 15 6 patlen J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pattern
start
public long position(java.sql.Blob, long);
descriptor: (Ljava/sql/Blob;J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lconst_1
aload 1
invokeinterface java.sql.Blob.length:()J
l2i
invokeinterface java.sql.Blob.getBytes:(JI)[B
lload 2
invokevirtual javax.sql.rowset.serial.SerialBlob.position:([BJ)J
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 1 1 pattern Ljava/sql/Blob;
0 1 2 start J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pattern
start
public int setBytes(long, byte[]);
descriptor: (J[B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
lload 1
aload 3
iconst_0
aload 3
arraylength
invokevirtual javax.sql.rowset.serial.SerialBlob.setBytes:(J[BII)I
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 1 1 pos J
0 1 3 bytes [B
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pos
bytes
public int setBytes(long, byte[], int, int);
descriptor: (J[BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: iload 4
iflt 1
iload 4
aload 3
arraylength
if_icmple 2
1: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Invalid offset in byte array set"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 1
lconst_1
lcmp
iflt 3
lload 1
aload 0
invokevirtual javax.sql.rowset.serial.SerialBlob.length:()J
lcmp
ifle 4
3: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Invalid position in BLOB object set"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 5
i2l
aload 0
getfield javax.sql.rowset.serial.SerialBlob.origLen:J
lcmp
ifle 6
5: new javax.sql.rowset.serial.SerialException
dup
ldc "Buffer is not sufficient to hold the value"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 5
iload 4
iadd
aload 3
arraylength
if_icmple 8
7: new javax.sql.rowset.serial.SerialException
dup
ldc "Invalid OffSet. Cannot have combined offset and length that is greater that the Blob buffer"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 9: lload 1
lconst_1
lsub
lstore 1
10: goto 13
11: StackMap locals: int
StackMap stack:
aload 0
getfield javax.sql.rowset.serial.SerialBlob.buf:[B
lload 1
l2i
iload 6
iadd
aload 3
iload 4
iload 6
iadd
baload
bastore
12: iinc 6 1
13: StackMap locals:
StackMap stack:
iload 6
iload 5
if_icmplt 11
iload 4
iload 6
iadd
iconst_1
iadd
aload 3
arraylength
iload 4
isub
if_icmplt 11
14: iload 6
ireturn
end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 15 1 pos J
0 15 3 bytes [B
0 15 4 offset I
0 15 5 length I
9 15 6 i I
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pos
bytes
offset
length
public java.io.OutputStream setBinaryStream(long);
descriptor: (J)Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.sql.rowset.serial.SerialBlob.blob:Ljava/sql/Blob;
lload 1
invokeinterface java.sql.Blob.setBinaryStream:(J)Ljava/io/OutputStream;
ifnull 2
1: aload 0
getfield javax.sql.rowset.serial.SerialBlob.blob:Ljava/sql/Blob;
lload 1
invokeinterface java.sql.Blob.setBinaryStream:(J)Ljava/io/OutputStream;
areturn
2: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Unsupported operation. SerialBlob cannot return a writable binary stream, unless instantiated with a Blob object that provides a setBinaryStream() implementation"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 3 1 pos J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pos
public void truncate(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
lcmp
ifle 4
1: new javax.sql.rowset.serial.SerialException
dup
2: ldc "Length more than what can be truncated"
3: invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
lload 1
l2i
ifne 8
5: aload 0
iconst_0
newarray 8
putfield javax.sql.rowset.serial.SerialBlob.buf:[B
6: aload 0
lload 1
putfield javax.sql.rowset.serial.SerialBlob.len:J
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield javax.sql.rowset.serial.SerialBlob.len:J
9: aload 0
aload 0
lconst_1
aload 0
getfield javax.sql.rowset.serial.SerialBlob.len:J
l2i
invokevirtual javax.sql.rowset.serial.SerialBlob.getBytes:(JI)[B
putfield javax.sql.rowset.serial.SerialBlob.buf:[B
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 11 1 length J
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
length
public java.io.InputStream getBinaryStream(long, long);
descriptor: (JJ)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 3 0: new java.lang.UnsupportedOperationException
dup
ldc "Not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialBlob;
0 1 1 pos J
0 1 3 length J
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
pos
length
public void free();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialBlob;
Exceptions:
throws java.sql.SQLException
}
SourceFile: "SerialBlob.java"