public class javax.imageio.stream.FileImageInputStream extends javax.imageio.stream.ImageInputStreamImpl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.imageio.stream.FileImageInputStream
super_class: javax.imageio.stream.ImageInputStreamImpl
{
private java.io.RandomAccessFile raf;
descriptor: Ljava/io/RandomAccessFile;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object disposerReferent;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.sun.imageio.stream.CloseableDisposerRecord disposerRecord;
descriptor: Lcom/sun/imageio/stream/CloseableDisposerRecord;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: new java.io.RandomAccessFile
dup
aload 1
ldc "r"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
StackMap locals: uninitialized-this java.io.File
StackMap stack: uninitialized-this java.io.RandomAccessFile
2: invokespecial javax.imageio.stream.FileImageInputStream.<init>:(Ljava/io/RandomAccessFile;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/imageio/stream/FileImageInputStream;
0 4 1 f Ljava/io/File;
Exceptions:
throws java.io.FileNotFoundException, java.io.IOException
MethodParameters:
Name Flags
f
public void <init>(java.io.RandomAccessFile);
descriptor: (Ljava/io/RandomAccessFile;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.imageio.stream.ImageInputStreamImpl.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "raf == null!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.imageio.stream.FileImageInputStream java.io.RandomAccessFile
StackMap stack:
aload 0
aload 1
putfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
4: aload 0
new com.sun.imageio.stream.CloseableDisposerRecord
dup
aload 1
invokespecial com.sun.imageio.stream.CloseableDisposerRecord.<init>:(Ljava/io/Closeable;)V
putfield javax.imageio.stream.FileImageInputStream.disposerRecord:Lcom/sun/imageio/stream/CloseableDisposerRecord;
5: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/imageio/stream/FileImageInputStream;
if_acmpne 9
6: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield javax.imageio.stream.FileImageInputStream.disposerReferent:Ljava/lang/Object;
7: aload 0
getfield javax.imageio.stream.FileImageInputStream.disposerReferent:Ljava/lang/Object;
aload 0
getfield javax.imageio.stream.FileImageInputStream.disposerRecord:Lcom/sun/imageio/stream/CloseableDisposerRecord;
invokestatic sun.java2d.Disposer.addRecord:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
new com.sun.imageio.stream.StreamFinalizer
dup
aload 0
invokespecial com.sun.imageio.stream.StreamFinalizer.<init>:(Ljavax/imageio/stream/ImageInputStream;)V
putfield javax.imageio.stream.FileImageInputStream.disposerReferent:Ljava/lang/Object;
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/imageio/stream/FileImageInputStream;
0 11 1 raf Ljava/io/RandomAccessFile;
MethodParameters:
Name Flags
raf
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.imageio.stream.FileImageInputStream.checkClosed:()V
1: aload 0
iconst_0
putfield javax.imageio.stream.FileImageInputStream.bitOffset:I
2: aload 0
getfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
invokevirtual java.io.RandomAccessFile.read:()I
istore 1
start local 1 3: iload 1
iconst_m1
if_icmpeq 5
4: aload 0
dup
getfield javax.imageio.stream.FileImageInputStream.streamPos:J
lconst_1
ladd
putfield javax.imageio.stream.FileImageInputStream.streamPos:J
5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/imageio/stream/FileImageInputStream;
3 6 1 val I
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.imageio.stream.FileImageInputStream.checkClosed:()V
1: aload 0
iconst_0
putfield javax.imageio.stream.FileImageInputStream.bitOffset:I
2: aload 0
getfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
aload 1
iload 2
iload 3
invokevirtual java.io.RandomAccessFile.read:([BII)I
istore 4
start local 4 3: iload 4
iconst_m1
if_icmpeq 5
4: aload 0
dup
getfield javax.imageio.stream.FileImageInputStream.streamPos:J
iload 4
i2l
ladd
putfield javax.imageio.stream.FileImageInputStream.streamPos:J
5: StackMap locals: int
StackMap stack:
iload 4
ireturn
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 Ljavax/imageio/stream/FileImageInputStream;
0 6 1 b [B
0 6 2 off I
0 6 3 len I
3 6 4 nbytes I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.imageio.stream.FileImageInputStream.checkClosed:()V
1: aload 0
getfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
invokevirtual java.io.RandomAccessFile.length:()J
2: lreturn
3: StackMap locals:
StackMap stack: java.io.IOException
pop
4: ldc -1
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/imageio/stream/FileImageInputStream;
Exception table:
from to target type
0 2 3 Class java.io.IOException
public void seek(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.imageio.stream.FileImageInputStream.checkClosed:()V
1: lload 1
aload 0
getfield javax.imageio.stream.FileImageInputStream.flushedPos:J
lcmp
ifge 3
2: new java.lang.IndexOutOfBoundsException
dup
ldc "pos < flushedPos!"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield javax.imageio.stream.FileImageInputStream.bitOffset:I
4: aload 0
getfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
lload 1
invokevirtual java.io.RandomAccessFile.seek:(J)V
5: aload 0
aload 0
getfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
invokevirtual java.io.RandomAccessFile.getFilePointer:()J
putfield javax.imageio.stream.FileImageInputStream.streamPos:J
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/imageio/stream/FileImageInputStream;
0 7 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.imageio.stream.ImageInputStreamImpl.close:()V
1: aload 0
getfield javax.imageio.stream.FileImageInputStream.disposerRecord:Lcom/sun/imageio/stream/CloseableDisposerRecord;
invokevirtual com.sun.imageio.stream.CloseableDisposerRecord.dispose:()V
2: aload 0
aconst_null
putfield javax.imageio.stream.FileImageInputStream.raf:Ljava/io/RandomAccessFile;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/imageio/stream/FileImageInputStream;
Exceptions:
throws java.io.IOException
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/FileImageInputStream;
Exceptions:
throws java.lang.Throwable
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9")
}
SourceFile: "FileImageInputStream.java"