public class javax.sql.rowset.serial.SerialClob implements java.sql.Clob, 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.SerialClob
super_class: java.lang.Object
{
private char[] buf;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private java.sql.Clob clob;
descriptor: Ljava/sql/Clob;
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: -1662519690087375313
public void <init>(char[]);
descriptor: ([C)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.SerialClob.len:J
2: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
l2i
newarray 5
putfield javax.sql.rowset.serial.SerialClob.buf:[C
3: iconst_0
istore 2
start local 2 4: goto 7
5: StackMap locals: javax.sql.rowset.serial.SerialClob char[] int
StackMap stack:
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
iload 2
aload 1
iload 2
caload
castore
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
i2l
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
lcmp
iflt 5
end local 2 8: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
putfield javax.sql.rowset.serial.SerialClob.origLen:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/sql/rowset/serial/SerialClob;
0 10 1 ch [C
4 8 2 i I
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
ch
public void <init>(java.sql.Clob);
descriptor: (Ljava/sql/Clob;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, 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 SerialClob object with a null Clob object"
invokespecial java.sql.SQLException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.sql.rowset.serial.SerialClob java.sql.Clob
StackMap stack:
aload 0
aload 1
invokeinterface java.sql.Clob.length:()J
putfield javax.sql.rowset.serial.SerialClob.len:J
4: aload 0
aload 1
putfield javax.sql.rowset.serial.SerialClob.clob:Ljava/sql/Clob;
5: aload 0
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
l2i
newarray 5
putfield javax.sql.rowset.serial.SerialClob.buf:[C
6: iconst_0
istore 2
start local 2 7: iconst_0
istore 3
start local 3 8: new java.io.BufferedReader
dup
aload 1
invokeinterface java.sql.Clob.getCharacterStream:()Ljava/io/Reader;
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
dup
astore 4
start local 4 9: ifnonnull 12
10: aload 1
invokeinterface java.sql.Clob.getAsciiStream:()Ljava/io/InputStream;
ifnonnull 12
11: new java.sql.SQLException
dup
ldc "Invalid Clob object. Calls to getCharacterStream and getAsciiStream return null which cannot be serialized."
invokespecial java.sql.SQLException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: int int java.io.BufferedReader
StackMap stack:
aload 4
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
iload 3
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
iload 3
i2l
lsub
l2i
invokevirtual java.io.BufferedReader.read:([CII)I
istore 2
13: iload 3
iload 2
iadd
istore 3
14: iload 2
15: ifgt 12
16: goto 19
StackMap locals:
StackMap stack: java.io.IOException
17: astore 5
start local 5 18: new javax.sql.rowset.serial.SerialException
dup
new java.lang.StringBuilder
dup
ldc "SerialClob: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
end local 5 19: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
putfield javax.sql.rowset.serial.SerialClob.origLen:J
20: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/sql/rowset/serial/SerialClob;
0 21 1 clob Ljava/sql/Clob;
7 21 2 read I
8 21 3 offset I
9 21 4 reader Ljava/io/BufferedReader;
18 19 5 ex Ljava/io/IOException;
Exception table:
from to target type
12 16 17 Class java.io.IOException
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
clob
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.SerialClob.len:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialClob;
Exceptions:
throws javax.sql.rowset.serial.SerialException
public java.io.Reader getCharacterStream();
descriptor: ()Ljava/io/Reader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.CharArrayReader
dup
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
invokespecial java.io.CharArrayReader.<init>:([C)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/sql/rowset/serial/SerialClob;
Exceptions:
throws javax.sql.rowset.serial.SerialException
public java.io.InputStream getAsciiStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.sql.rowset.serial.SerialClob.clob:Ljava/sql/Clob;
ifnull 2
1: aload 0
getfield javax.sql.rowset.serial.SerialClob.clob:Ljava/sql/Clob;
invokeinterface java.sql.Clob.getAsciiStream:()Ljava/io/InputStream;
areturn
2: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Unsupported operation. SerialClob cannot return a the CLOB value as an ascii stream, unless instantiated with a fully implemented Clob object."
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/sql/rowset/serial/SerialClob;
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
public java.lang.String getSubString(long, int);
descriptor: (JI)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lconst_1
lcmp
iflt 1
lload 1
aload 0
invokevirtual javax.sql.rowset.serial.SerialClob.length:()J
lcmp
ifle 2
1: 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
2: StackMap locals:
StackMap stack:
lload 1
lconst_1
lsub
iload 3
i2l
ladd
aload 0
invokevirtual javax.sql.rowset.serial.SerialClob.length:()J
lcmp
ifle 4
3: new javax.sql.rowset.serial.SerialException
dup
ldc "Invalid position and substring length"
invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
lload 1
l2i
iconst_1
isub
iload 3
invokespecial java.lang.String.<init>:([CII)V
5: areturn
6: StackMap locals:
StackMap stack: java.lang.StringIndexOutOfBoundsException
astore 4
start local 4 7: new javax.sql.rowset.serial.SerialException
dup
new java.lang.StringBuilder
dup
ldc "StringIndexOutOfBoundsException: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 4
invokevirtual java.lang.StringIndexOutOfBoundsException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial javax.sql.rowset.serial.SerialException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/sql/rowset/serial/SerialClob;
0 10 1 pos J
0 10 3 length I
7 10 4 e Ljava/lang/StringIndexOutOfBoundsException;
Exception table:
from to target type
4 5 6 Class java.lang.StringIndexOutOfBoundsException
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
pos
length
public long position(java.lang.String, long);
descriptor: (Ljava/lang/String;J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, 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.SerialClob.len:J
lcmp
ifle 2
1: StackMap locals:
StackMap stack:
ldc -1
lreturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.toCharArray:()[C
astore 4
start local 4 3: lload 2
l2i
iconst_1
isub
istore 5
start local 5 4: iconst_0
istore 6
start local 6 5: aload 4
arraylength
i2l
lstore 7
start local 7 6: goto 14
7: StackMap locals: javax.sql.rowset.serial.SerialClob java.lang.String long char[] int int long
StackMap stack:
aload 4
iload 6
caload
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
iload 5
caload
if_icmpne 12
8: iload 6
iconst_1
iadd
i2l
lload 7
lcmp
ifne 10
9: iload 5
iconst_1
iadd
i2l
lload 7
lconst_1
lsub
lsub
lreturn
10: StackMap locals:
StackMap stack:
iinc 6 1
iinc 5 1
11: goto 14
StackMap locals:
StackMap stack:
12: aload 4
iload 6
caload
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
iload 5
caload
if_icmpeq 14
13: iinc 5 1
14: StackMap locals:
StackMap stack:
iload 5
i2l
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
lcmp
iflt 7
15: ldc -1
lreturn
end local 7 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 16 0 this Ljavax/sql/rowset/serial/SerialClob;
0 16 1 searchStr Ljava/lang/String;
0 16 2 start J
3 16 4 pattern [C
4 16 5 pos I
5 16 6 i I
6 16 7 patlen J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
searchStr
start
public long position(java.sql.Clob, long);
descriptor: (Ljava/sql/Clob;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.Clob.length:()J
l2i
invokeinterface java.sql.Clob.getSubString:(JI)Ljava/lang/String;
lload 2
invokevirtual javax.sql.rowset.serial.SerialClob.position:(Ljava/lang/String;J)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/SerialClob;
0 1 1 searchStr Ljava/sql/Clob;
0 1 2 start J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
searchStr
start
public int setString(long, java.lang.String);
descriptor: (JLjava/lang/String;)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
invokevirtual java.lang.String.length:()I
invokevirtual javax.sql.rowset.serial.SerialClob.setString:(JLjava/lang/String;II)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/SerialClob;
0 1 1 pos J
0 1 3 str Ljava/lang/String;
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
pos
str
public int setString(long, java.lang.String, int, int);
descriptor: (JLjava/lang/String;II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: aload 3
iload 4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
start local 6 1: aload 6
invokevirtual java.lang.String.toCharArray:()[C
astore 7
start local 7 2: iload 4
iflt 3
iload 4
aload 3
invokevirtual java.lang.String.length:()I
if_icmple 4
3: StackMap locals: java.lang.String char[]
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
4: StackMap locals:
StackMap stack:
lload 1
lconst_1
lcmp
iflt 5
lload 1
aload 0
invokevirtual javax.sql.rowset.serial.SerialClob.length:()J
lcmp
ifle 6
5: 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
6: StackMap locals:
StackMap stack:
iload 5
i2l
aload 0
getfield javax.sql.rowset.serial.SerialClob.origLen:J
lcmp
ifle 8
7: 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
8: StackMap locals:
StackMap stack:
iload 5
iload 4
iadd
aload 3
invokevirtual java.lang.String.length:()I
if_icmple 10
9: 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
10: StackMap locals:
StackMap stack:
iconst_0
istore 8
start local 8 11: lload 1
lconst_1
lsub
lstore 1
12: goto 15
13: StackMap locals: int
StackMap stack:
aload 0
getfield javax.sql.rowset.serial.SerialClob.buf:[C
lload 1
l2i
iload 8
iadd
aload 7
iload 4
iload 8
iadd
caload
castore
14: iinc 8 1
15: StackMap locals:
StackMap stack:
iload 8
iload 5
if_icmplt 13
iload 4
iload 8
iadd
iconst_1
iadd
aload 3
invokevirtual java.lang.String.length:()I
iload 4
isub
if_icmplt 13
16: iload 8
ireturn
end local 8 end local 7 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 17 0 this Ljavax/sql/rowset/serial/SerialClob;
0 17 1 pos J
0 17 3 str Ljava/lang/String;
0 17 4 offset I
0 17 5 length I
1 17 6 temp Ljava/lang/String;
2 17 7 cPattern [C
11 17 8 i I
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
pos
str
offset
length
public java.io.OutputStream setAsciiStream(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.SerialClob.clob:Ljava/sql/Clob;
lload 1
invokeinterface java.sql.Clob.setAsciiStream:(J)Ljava/io/OutputStream;
ifnull 2
1: aload 0
getfield javax.sql.rowset.serial.SerialClob.clob:Ljava/sql/Clob;
lload 1
invokeinterface java.sql.Clob.setAsciiStream:(J)Ljava/io/OutputStream;
areturn
2: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Unsupported operation. SerialClob cannot return a writable ascii stream\n unless instantiated with a Clob object that has a setAsciiStream() 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/SerialClob;
0 3 1 pos J
Exceptions:
throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
MethodParameters:
Name Flags
pos
public java.io.Writer setCharacterStream(long);
descriptor: (J)Ljava/io/Writer;
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.SerialClob.clob:Ljava/sql/Clob;
lload 1
invokeinterface java.sql.Clob.setCharacterStream:(J)Ljava/io/Writer;
ifnull 2
1: aload 0
getfield javax.sql.rowset.serial.SerialClob.clob:Ljava/sql/Clob;
lload 1
invokeinterface java.sql.Clob.setCharacterStream:(J)Ljava/io/Writer;
areturn
2: StackMap locals:
StackMap stack:
new javax.sql.rowset.serial.SerialException
dup
ldc "Unsupported operation. SerialClob cannot return a writable character stream\n unless instantiated with a Clob object that has a setCharacterStream 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/SerialClob;
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.SerialClob.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:
aload 0
lload 1
putfield javax.sql.rowset.serial.SerialClob.len:J
5: aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
lconst_0
lcmp
ifne 8
6: aload 0
iconst_0
newarray 5
putfield javax.sql.rowset.serial.SerialClob.buf:[C
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
aload 0
lconst_1
aload 0
getfield javax.sql.rowset.serial.SerialClob.len:J
l2i
invokevirtual javax.sql.rowset.serial.SerialClob.getSubString:(JI)Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
putfield javax.sql.rowset.serial.SerialClob.buf:[C
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/sql/rowset/serial/SerialClob;
0 10 1 length J
Exceptions:
throws javax.sql.rowset.serial.SerialException
MethodParameters:
Name Flags
length
public java.io.Reader getCharacterStream(long, long);
descriptor: (JJ)Ljava/io/Reader;
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/SerialClob;
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/SerialClob;
Exceptions:
throws java.sql.SQLException
}
SourceFile: "SerialClob.java"