
de.tsl2.nano.core.util.ByteUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.terminal Show documentation
Show all versions of tsl2.nano.terminal Show documentation
TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)
???? 4?
k ? ?
c ?
i ?
? ? ?
? ? ? ? ? ? ?
? ?
? ? ?
? ? ?
?
? ?
?
i ?
?
? ? ?
? ?
i ?
?
i ? ? i ?
! ?
!
c
?
!
i
!
- ?
/
/
/
-
!
-
9
;
;
;
i
G?? @
!!" O? # ? $ ?
?%&'
i(
?)
*+
Z ?
i,-.
^/
]
0
1234
i5
6
7
89:
;<= 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 fromHex (Ljava/lang/String;)[B hex
stringToBytes (Ljava/lang/String;I)[B txt base buf
SourceFile
ByteUtil.java o p java/io/Serializable ??@ wABCD w java/nio/ByteBuffer java/io/InputStream
java/sql/Blob "javax/sql/rowset/serial/SerialBlob oE java/lang/ExceptionFGH java/lang/ByteIJK java/lang/StringLM java/io/ByteArrayInputStream ? ? ?NOPE java/io/IOExceptionQ ?R ? ?SN ? ?TU m n java/lang/StringBuilder 0trying to serialize a non-serializeable object: VWXYZ[ ?[\]^ ? ? 7creating byte array through serializing object of type V_`^ java/io/ByteArrayOutputStream java/io/ObjectOutputStream oab^ ? p serialized byte array for type size: cdVe bytes ?N !de/tsl2/nano/core/util/ByteUtil$1 of java/io/ObjectInputStream oghi ? ?jklmnoVp GB MB KBq ?
file.encoding UTF-8rstuvw java/io/PipedInputStream ? ? java/io/PrintStream java/io/PipedOutputStream oxydz{ java/lang/Object|}~ ? ?d????? de/tsl2/nano/core/util/ByteUtil??? 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; length substring (II)Ljava/lang/String; java/lang/Integer parseInt (Ljava/lang/String;I)I de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! i k m n o p q / *? ? r + s t u v w q ? J*? ?
*? ? 7*? ? *? ? '*? ? *? ?
*? ? *? ? ? ? r 5 6 , 7 I 5 s J x y z J x { | @ } ~ ? q / w+? ? *?+? ? ? Y*?
?M,? W?+? ? *?? M*,*?? ,?+? ? ? Y*? ? +? ? *? ?
+? ? ? Y*? ?*? ? r 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 s * ? ? 4 ? ? w ? ? w x y z w x ? | Q ?
} ? ? ? q ? *+? ? ? N-? W? *? W? r d g e f h i j s * ? ? ? ? ? ? ? ? | K ? ? ? q ? i*? ? *? ? ?*? ? *? ?*? ? *? ? ?*? ? *? ? ?*?
? *?
? ?*? ? *? ? ? ?L+? W?*? ? O [ \ r B r s t u v " w * x 1 y 9 z @ { H | O ~ \ ] ? b ? d ? s ] ? ? i ? ? | S ? ? ? q w 3*? ? **? $? ? !Y? "#? $*? %? &? $? '? ( ?*? )? r ? ? ? , ? . ? s 3 ? ? | , ? ? q ? t? ? !Y? "*? $*? %? +? '? , ? -Y? .L? /Y+? 0M,*? 1,? 2? ? !Y? "3? $*? %? +4? $+? 5? 67? $? '? , +? 8?L+? W? k l r *
? ? &