
de.tsl2.nano.core.util.ByteUtil.class Maven / Gradle / Ivy
???? 4q
g ? ?
c ?
e ?
? ? ?
? ? ? ? ? ? ?
? ?
? ? ?
? ? ?
?
? ?
?
e ?
?
? ? ?
? ?
e ?
?
e ? ? e ? ?
! ? ?
! ?
c ?
? ?
! ? ? ?
e ? ?
! ? ? ?
- ?
/
/
/
-
!
-
9
;
;
;
e
G?? @
! O? ?
?
e
?
Z ?
e !"
^#
]
$
%&'()
*+, InnerClasses LOG Lorg/apache/commons/logging/Log; ()V Code LineNumberTable LocalVariableTable this !Lde/tsl2/nano/core/util/ByteUtil; isByteStream (Ljava/lang/Class;)Z type Ljava/lang/Class; LocalVariableTypeTable Ljava/lang/Class<*>;
StackMapTable Signature (Ljava/lang/Class<*>;)Z toByteStream '([BLjava/lang/Class;)Ljava/lang/Object; e Ljava/lang/Exception; b [Ljava/lang/Byte; bytes [B Ljava/lang/Class; ? 3([BLjava/lang/Class;)TT; addToByteStream ,(Ljava/io/OutputStream;Ljava/lang/String;Z)V Ljava/io/IOException; out Ljava/io/OutputStream; data Ljava/lang/String; close Z ? getBytes (Ljava/lang/Object;)[B o Ljava/lang/Object; serialize instance convertToByteArray bos Ljava/io/ByteArrayOutputStream; Ljava/io/ObjectOutputStream; ex bean convertToObject ([B)Ljava/lang/Object; -([BLjava/lang/ClassLoader;)Ljava/lang/Object; i Ljava/io/ObjectInputStream; bis Ljava/io/ByteArrayInputStream; object classLoader Ljava/lang/ClassLoader; ?
- equals '(Ljava/lang/Object;Ljava/lang/Object;)Z bean1 bean2 ([B[B)Z copy &(Ljava/lang/Object;)Ljava/lang/Object; ser TT; (TT;)TT; amount (J)Ljava/lang/String; c J ? getInputStream ([B)Ljava/io/InputStream; toByteArray (Ljava/io/InputStream;)[B stream Ljava/io/InputStream; toString ;(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String; encoding ? getPipe ()Ljava/io/PrintStream; 1(Ljava/io/PipedInputStream;)Ljava/io/PrintStream; in Ljava/io/PipedInputStream; forEach @(Ljava/io/InputStream;ILde/tsl2/nano/core/execution/IRunnable;)V bufferlength I action 'Lde/tsl2/nano/core/execution/IRunnable; buffer =Lde/tsl2/nano/core/execution/IRunnable; V(Ljava/io/InputStream;ILde/tsl2/nano/core/execution/IRunnable;)V
SourceFile
ByteUtil.java k l java/io/Serializable ?./ s0123 s java/nio/ByteBuffer java/io/InputStream
java/sql/Blob "javax/sql/rowset/serial/SerialBlob k4 java/lang/Exception567 java/lang/Byte89: java/lang/String;< java/io/ByteArrayInputStream ? ? ?=>?4 java/io/IOException@ ?A ? ?B= ? ?CD i j java/lang/StringBuilder 0trying to serialize a non-serializeable object: EFGHIJ ?JKLM ? ? 7creating byte array through serializing object of type ENOM java/io/ByteArrayOutputStream java/io/ObjectOutputStream kPQM ? l serialized byte array for type size: RSET bytes ?= !de/tsl2/nano/core/util/ByteUtil$1 kU java/io/ObjectInputStream kVWX ? ?YZ[\]^E_ GB MB KB` ?
file.encoding UTF-8abcdef java/io/PipedInputStream ? ? java/io/PrintStream java/io/PipedOutputStream kghSij java/lang/Objectklm de/tsl2/nano/core/util/ByteUtilnop de/tsl2/nano/core/util/Util java/lang/ClassLoader (Ljava/lang/Object;)Z isFrameworkClass java/lang/Class isArray ()Z isAssignableFrom ([B)V "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V wrap ([B)Ljava/nio/ByteBuffer; ()[B java/io/OutputStream write de/tsl2/nano/core/util/FileUtil /(Ljava/io/OutputStream;Z)Ljava/io/OutputStream; array getBinaryStream ()Ljava/io/InputStream; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getClass ()Ljava/lang/Class; getName ()Ljava/lang/String; org/apache/commons/logging/Log warn (Ljava/lang/Object;)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; debug (Ljava/io/OutputStream;)V writeObject size ()I (I)Ljava/lang/StringBuilder; /(Ljava/io/InputStream;Ljava/lang/ClassLoader;)V (Ljava/io/InputStream;)V
readObject ()Ljava/lang/Object; java/util/Arrays java/lang/Thread
currentThread ()Ljava/lang/Thread; getContextClassLoader ()Ljava/lang/ClassLoader; (J)Ljava/lang/StringBuilder; readBytes get 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; getFileData +(Ljava/io/InputStream;Ljava/lang/String;)[C valueOf ([C)Ljava/lang/String; (Ljava/io/PipedInputStream;)V available read ([B)I %de/tsl2/nano/core/execution/IRunnable run 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! e g i j k l m / *? ? n + o p q r s m ? J*? ?
*? ? 7*? ? *? ? '*? ? *? ?
*? ? *? ? ? ? n 5 6 , 7 I 5 o J t u v J t w x @ y z { | m / w+? ? *?+? ? ? Y*?
?M,? W?+? ? *?? M*,*?? ,?+? ? ? Y*? ? +? ? *? ?
+? ? ? Y*? ?*? ? n J D E F H I J # K % M . N 4 O = P ? Q H R Q S Z T _ U h V q X o * } ~ 4 ? w ? ? w t u v w t ? x Q ?
y ? ? ? m ? *+? ? ? N-? W? *? W? n d g e f h i j o * } ? ? ? ? ? ? ? x K ? ? ? m ? i*? ? *? ? ?*? ? *? ?*? ? *? ? ?*? ? *? ? ?*?
? *?
? ?*? ? *? ? ? ?L+? W?*? ? O [ \ n B r s t u v " w * x 1 y 9 z @ { H | O ~ \ ] ? b ? d ? o ] } ~ i ? ? x S ? ? ? m w 3*? ? **? $? ? !Y? "#? $*? %? &? $? '? ( ?*? )? n ? ? ? , ? . ? o 3 ? ? x , ? ? m ? t? ? !Y? "*? $*? %? +? '? , ? -Y? .L? /Y+? 0M,*? 1,? 2? ? !Y? "3? $*? %? +4? $+? 5? 67? $? '? , +? 8?L+? W? k l n *
? ? &