public class org.eclipse.jgit.diff.RawText extends org.eclipse.jgit.diff.Sequence
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jgit.diff.RawText
super_class: org.eclipse.jgit.diff.Sequence
{
public static final org.eclipse.jgit.diff.RawText EMPTY_TEXT;
descriptor: Lorg/eclipse/jgit/diff/RawText;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static final int FIRST_FEW_BYTES;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8000
protected final byte[] content;
descriptor: [B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.eclipse.jgit.util.IntList lines;
descriptor: Lorg/eclipse/jgit/util/IntList;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.eclipse.jgit.diff.RawText
dup
iconst_0
newarray 8
invokespecial org.eclipse.jgit.diff.RawText.<init>:([B)V
putstatic org.eclipse.jgit.diff.RawText.EMPTY_TEXT:Lorg/eclipse/jgit/diff/RawText;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
iconst_0
aload 1
arraylength
invokestatic org.eclipse.jgit.util.RawParseUtils.lineMap:([BII)Lorg/eclipse/jgit/util/IntList;
invokespecial org.eclipse.jgit.diff.RawText.<init>:([BLorg/eclipse/jgit/util/IntList;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/diff/RawText;
0 2 1 input [B
MethodParameters:
Name Flags
input
public void <init>(byte[], org.eclipse.jgit.util.IntList);
descriptor: ([BLorg/eclipse/jgit/util/IntList;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.eclipse.jgit.diff.Sequence.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jgit.diff.RawText.content:[B
2: aload 0
aload 2
putfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jgit/diff/RawText;
0 4 1 input [B
0 4 2 lineMap Lorg/eclipse/jgit/util/IntList;
MethodParameters:
Name Flags
input
lineMap
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.eclipse.jgit.util.IO.readFully:(Ljava/io/File;)[B
invokespecial org.eclipse.jgit.diff.RawText.<init>:([B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jgit/diff/RawText;
0 2 1 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public byte[] getRawContent();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
invokevirtual org.eclipse.jgit.util.IntList.size:()I
iconst_2
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
public void writeLine(java.io.OutputStream, int);
descriptor: (Ljava/io/OutputStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 2
invokevirtual org.eclipse.jgit.diff.RawText.getStart:(I)I
istore 3
start local 3 1: aload 0
iload 2
invokevirtual org.eclipse.jgit.diff.RawText.getEnd:(I)I
istore 4
start local 4 2: aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 4
iconst_1
isub
baload
bipush 10
if_icmpne 4
3: iinc 4 -1
4: StackMap locals: int int
StackMap stack:
aload 1
aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 3
iload 4
iload 3
isub
invokevirtual java.io.OutputStream.write:([BII)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jgit/diff/RawText;
0 6 1 out Ljava/io/OutputStream;
0 6 2 i I
1 6 3 start I
2 6 4 end I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
i
public boolean isMissingNewlineAtEnd();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
aload 0
getfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
invokevirtual org.eclipse.jgit.util.IntList.size:()I
iconst_1
isub
invokevirtual org.eclipse.jgit.util.IntList.get:(I)I
istore 1
start local 1 1: iload 1
ifne 3
2: iconst_1
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 1
iconst_1
isub
baload
bipush 10
if_icmpeq 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jgit/diff/RawText;
1 5 1 end I
public java.lang.String getString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iload 1
iconst_1
iadd
iconst_1
invokevirtual org.eclipse.jgit.diff.RawText.getString:(IIZ)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
0 1 1 i I
MethodParameters:
Name Flags
i
public java.lang.String getString(int, int, boolean);
descriptor: (IIZ)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
if_icmpne 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual org.eclipse.jgit.diff.RawText.getStart:(I)I
istore 4
start local 4 3: aload 0
iload 2
iconst_1
isub
invokevirtual org.eclipse.jgit.diff.RawText.getEnd:(I)I
istore 5
start local 5 4: iload 3
ifeq 6
aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 5
iconst_1
isub
baload
bipush 10
if_icmpne 6
5: iinc 5 -1
6: StackMap locals: int int
StackMap stack:
aload 0
iload 4
iload 5
invokevirtual org.eclipse.jgit.diff.RawText.decode:(II)Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jgit/diff/RawText;
0 7 1 begin I
0 7 2 end I
0 7 3 dropLF Z
3 7 4 s I
4 7 5 e I
MethodParameters:
Name Flags
begin
end
dropLF
protected java.lang.String decode(int, int);
descriptor: (II)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 1
iload 2
invokestatic org.eclipse.jgit.util.RawParseUtils.decode:([BII)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
0 1 1 start I
0 1 2 end I
MethodParameters:
Name Flags
start
end
private int getStart(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
iload 1
iconst_1
iadd
invokevirtual org.eclipse.jgit.util.IntList.get:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
0 1 1 i I
MethodParameters:
Name Flags
i
private int getEnd(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jgit.diff.RawText.lines:Lorg/eclipse/jgit/util/IntList;
iload 1
iconst_2
iadd
invokevirtual org.eclipse.jgit.util.IntList.get:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jgit/diff/RawText;
0 1 1 i I
MethodParameters:
Name Flags
i
public static boolean isBinary(byte[]);
descriptor: ([B)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
arraylength
invokestatic org.eclipse.jgit.diff.RawText.isBinary:([BI)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 raw [B
MethodParameters:
Name Flags
raw
public static boolean isBinary(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: sipush 8000
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 1
iload 2
aload 1
arraylength
iload 2
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 4: iload 3
iconst_m1
if_icmpne 6
5: goto 8
6: StackMap locals: int
StackMap stack:
iload 2
iload 3
iadd
istore 2
end local 3 7: StackMap locals:
StackMap stack:
iload 2
aload 1
arraylength
if_icmplt 3
8: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic org.eclipse.jgit.diff.RawText.isBinary:([BI)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 raw Ljava/io/InputStream;
1 9 1 buffer [B
2 9 2 cnt I
4 7 3 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
raw
public static boolean isBinary(byte[], int);
descriptor: ([BI)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
sipush 8000
if_icmple 2
1: sipush 8000
istore 1
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
iload 2
baload
ifne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 1
if_icmplt 4
end local 2 8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 raw [B
0 9 1 length I
3 8 2 ptr I
MethodParameters:
Name Flags
raw
length
public static boolean isCrLfText(byte[]);
descriptor: ([B)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
arraylength
invokestatic org.eclipse.jgit.diff.RawText.isCrLfText:([BI)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 raw [B
MethodParameters:
Name Flags
raw
public static boolean isCrLfText(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: sipush 8000
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 1
iload 2
aload 1
arraylength
iload 2
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 4: iload 3
iconst_m1
if_icmpne 6
5: goto 8
6: StackMap locals: int
StackMap stack:
iload 2
iload 3
iadd
istore 2
end local 3 7: StackMap locals:
StackMap stack:
iload 2
aload 1
arraylength
if_icmplt 3
8: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic org.eclipse.jgit.diff.RawText.isCrLfText:([BI)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 raw Ljava/io/InputStream;
1 9 1 buffer [B
2 9 2 cnt I
4 7 3 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
raw
public static boolean isCrLfText(byte[], int);
descriptor: ([BI)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: int int
StackMap stack:
aload 0
iload 3
baload
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
iload 3
baload
bipush 13
if_icmpne 7
aload 0
iload 3
iconst_1
iadd
baload
bipush 10
if_icmpne 7
6: iconst_1
istore 2
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 1
iconst_1
isub
if_icmplt 3
end local 3 9: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 raw [B
0 10 1 length I
1 10 2 has_crlf Z
2 9 3 ptr I
MethodParameters:
Name Flags
raw
length
public java.lang.String getLineDelimiter();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jgit.diff.RawText.size:()I
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual org.eclipse.jgit.diff.RawText.getEnd:(I)I
istore 1
start local 1 3: aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 1
iconst_1
isub
baload
bipush 10
if_icmpeq 5
4: aconst_null
areturn
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
arraylength
iconst_1
if_icmple 7
iload 1
iconst_1
if_icmple 7
aload 0
getfield org.eclipse.jgit.diff.RawText.content:[B
iload 1
iconst_2
isub
baload
bipush 13
if_icmpne 7
6: ldc "\r\n"
areturn
7: StackMap locals:
StackMap stack:
ldc "\n"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/eclipse/jgit/diff/RawText;
3 8 1 e I
public static org.eclipse.jgit.diff.RawText load(org.eclipse.jgit.lib.ObjectLoader, int);
descriptor: (Lorg/eclipse/jgit/lib/ObjectLoader;I)Lorg/eclipse/jgit/diff/RawText;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=12, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.eclipse.jgit.lib.ObjectLoader.getSize:()J
lstore 2
start local 2 1: lload 2
iload 1
i2l
lcmp
ifle 3
2: new org.eclipse.jgit.errors.BinaryBlobException
dup
invokespecial org.eclipse.jgit.errors.BinaryBlobException.<init>:()V
athrow
3: StackMap locals: long
StackMap stack:
lload 2
ldc 8000
lcmp
ifgt 8
4: aload 0
sipush 8000
invokevirtual org.eclipse.jgit.lib.ObjectLoader.getCachedBytes:(I)[B
astore 4
start local 4 5: aload 4
invokestatic org.eclipse.jgit.diff.RawText.isBinary:([B)Z
ifeq 7
6: new org.eclipse.jgit.errors.BinaryBlobException
dup
invokespecial org.eclipse.jgit.errors.BinaryBlobException.<init>:()V
athrow
7: StackMap locals: byte[]
StackMap stack:
new org.eclipse.jgit.diff.RawText
dup
aload 4
invokespecial org.eclipse.jgit.diff.RawText.<init>:([B)V
areturn
end local 4 8: StackMap locals:
StackMap stack:
sipush 8000
newarray 8
astore 4
start local 4 9: aconst_null
astore 5
aconst_null
astore 6
10: aload 0
invokevirtual org.eclipse.jgit.lib.ObjectLoader.openStream:()Lorg/eclipse/jgit/lib/ObjectStream;
astore 7
start local 7 11: iconst_0
istore 8
start local 8 12: aload 4
arraylength
istore 9
start local 9 13: goto 24
14: StackMap locals: org.eclipse.jgit.lib.ObjectLoader int long byte[] java.lang.Throwable java.lang.Throwable java.io.InputStream int int
StackMap stack:
aload 7
aload 4
iload 8
iload 9
invokevirtual java.io.InputStream.read:([BII)I
istore 10
start local 10 15: iload 10
ifge 17
16: new java.io.EOFException
dup
invokespecial java.io.EOFException.<init>:()V
athrow
17: StackMap locals: int
StackMap stack:
iload 9
iload 10
isub
istore 9
18: goto 23
19: StackMap locals:
StackMap stack:
aload 4
iload 8
baload
ifne 21
20: new org.eclipse.jgit.errors.BinaryBlobException
dup
invokespecial org.eclipse.jgit.errors.BinaryBlobException.<init>:()V
athrow
21: StackMap locals:
StackMap stack:
iinc 8 1
22: iinc 10 -1
23: StackMap locals:
StackMap stack:
iload 10
ifgt 19
end local 10 24: StackMap locals:
StackMap stack:
iload 9
ifgt 14
25: lload 2
l2i
newarray 8
astore 10
start local 10 26: goto 29
end local 10 StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
27: astore 11
start local 11 28: new org.eclipse.jgit.errors.LargeObjectException$OutOfMemory
dup
aload 11
invokespecial org.eclipse.jgit.errors.LargeObjectException$OutOfMemory.<init>:(Ljava/lang/OutOfMemoryError;)V
athrow
end local 11 start local 10 29: StackMap locals: byte[]
StackMap stack:
aload 4
iconst_0
aload 10
iconst_0
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
30: aload 7
aload 10
iload 8
lload 2
iload 8
i2l
lsub
l2i
invokestatic org.eclipse.jgit.util.IO.readFully:(Ljava/io/InputStream;[BII)V
31: new org.eclipse.jgit.diff.RawText
dup
aload 10
aload 10
iconst_0
lload 2
l2i
invokestatic org.eclipse.jgit.util.RawParseUtils.lineMapOrBinary:([BII)Lorg/eclipse/jgit/util/IntList;
invokespecial org.eclipse.jgit.diff.RawText.<init>:([BLorg/eclipse/jgit/util/IntList;)V
32: aload 7
ifnull 33
aload 7
invokevirtual java.io.InputStream.close:()V
33: StackMap locals:
StackMap stack: org.eclipse.jgit.diff.RawText
areturn
end local 10 end local 9 end local 8 StackMap locals: org.eclipse.jgit.lib.ObjectLoader int long byte[] java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
34: astore 5
35: aload 7
ifnull 36
aload 7
invokevirtual java.io.InputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
36: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
37: astore 6
aload 5
ifnonnull 38
aload 6
astore 5
goto 39
StackMap locals:
StackMap stack:
38: aload 5
aload 6
if_acmpeq 39
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
39: aload 5
athrow
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 ldr Lorg/eclipse/jgit/lib/ObjectLoader;
0 40 1 threshold I
1 40 2 sz J
5 8 4 data [B
9 40 4 head [B
11 36 7 stream Ljava/io/InputStream;
12 34 8 off I
13 34 9 left I
15 24 10 n I
26 27 10 data [B
29 34 10 data [B
28 29 11 e Ljava/lang/OutOfMemoryError;
Exception table:
from to target type
25 26 27 Class java.lang.OutOfMemoryError
11 32 34 any
10 33 37 any
34 37 37 any
Exceptions:
throws java.io.IOException, org.eclipse.jgit.errors.BinaryBlobException
MethodParameters:
Name Flags
ldr
threshold
}
SourceFile: "RawText.java"
InnerClasses:
public OutOfMemory = org.eclipse.jgit.errors.LargeObjectException$OutOfMemory of org.eclipse.jgit.errors.LargeObjectException