
META-INF.modules.java.desktop.classes.javax.imageio.stream.FileCacheImageOutputStream.class Maven / Gradle / Ivy
???? : ?
*javax/imageio/stream/ImageOutputStreamImpl ()V
/javax/imageio/stream/FileCacheImageOutputStream maxStreamPos J "java/lang/IllegalArgumentException stream == null!
(Ljava/lang/String;)V
java/io/File isDirectory ()Z Not a directory! stream Ljava/io/OutputStream; ! imageio # .tmp % %java/nio/file/attribute/FileAttribute
' ( ) * + java/nio/file/Files createTempFile b(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; - . / 0 1 java/nio/file/Path toFile ()Ljava/io/File; 3 4 5 cacheFile Ljava/io/File;
7 8 9 toPath ()Ljava/nio/file/Path;
' ; * < v(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; > java/io/RandomAccessFile @ rw
= B C #(Ljava/io/File;Ljava/lang/String;)V E F G cache Ljava/io/RandomAccessFile;
I J K L M #com/sun/imageio/stream/StreamCloser createCloseAction Z(Ljavax/imageio/stream/ImageInputStream;)Lcom/sun/imageio/stream/StreamCloser$CloseAction; O P Q closeAction 1Lcom/sun/imageio/stream/StreamCloser$CloseAction;
I S T U
addToQueue 4(Lcom/sun/imageio/stream/StreamCloser$CloseAction;)V
W X checkClosed Z [ \ bitOffset I
= ^ _ ` read ()I b c streamPos e java/lang/NullPointerException g
b == null!
d j #java/lang/IndexOutOfBoundsException l 8off < 0 || len < 0 || off+len > b.length || off+len < 0!
i
= o _ p ([BII)I
r s flushBits
= u v w write (I)V
y z { | } java/lang/Math max (JJ)J
= v ? ([BII)V
= ? ? ? length ()J ? java/io/IOException???????? ? ?
flushedPos
i
= ? ? ? seek (J)V
= ? ? ? getFilePointer
?
? ? ? flushBefore
? ? close
= ?
? ? delete
? ? ? ? java/io/OutputStream flush
I ? ? U removeFromQueue
?
y ? ? } min
= ? ? ? readFully
? '(Ljava/io/OutputStream;Ljava/io/File;)V Code LineNumberTable LocalVariableTable this 1Ljavax/imageio/stream/FileCacheImageOutputStream; cacheDir
StackMapTable
Exceptions val b [B off len nbytes e Ljava/io/IOException; pos isCached isCachedFile isCachedMemory bufLen buf oFlushedPos
flushBytes ?
SourceFile FileCacheImageOutputStream.java InnerClasses ? /com/sun/imageio/stream/StreamCloser$CloseAction CloseAction ! 4 5 F G P Q ? ? ?*? * ? +?
?
Y? ?,? ,? ?
?
Y? ?*+? ,? * "? $? &? , ? 2? *,? 6 "? $? :? , ? 2*? =Y*? 2?? A? D**? H? N*? N? R? ? > O 2 P
Q S " T , V 1 W 5 X L Z \ [ d \ u ^ } _ ? ` ? ? ? ? ? ? ? 5 ? ? ? ? ? _ ` ? v "*? V*? Y*? D? ]<?
*Y? a
a? a? ? c d e f g i ? " ? ? ? \ ? ? ? ? _ p ? ? ^*? V+?
? dYf? h?? ? `+?? `?
? iYk? m?*? Y? ?*? D+? n6? *Y? a?a? a? ? 2 m o p r ( s 2 w 7 y ; z = } I ~ O [ ? ? 4 ^ ? ? ^ ? ? ^ ? \ ^ ? \ I ? \ ?
? ? ? v w ? j &*? q*? D? t*Y? a
a? a**? *? a? x? ? ? ? ? ? ? % ? ? &