com.groupbyinc.flux.common.ibm.icu.impl.ICUBinary.class Maven / Gradle / Ivy
???? 2$ 1com/groupbyinc/flux/common/ibm/icu/impl/ICUBinary java/lang/Object ICUBinary.java 3com/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$1 >com/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$Authenticate Authenticate Acom/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$PackageDataFile PackageDataFile @com/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$SingleDataFile SingleDataFile :com/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$DataFile DataFile Bcom/groupbyinc/flux/common/ibm/icu/impl/ICUBinary$DatPackageReader DatPackageReader %java/nio/channels/FileChannel$MapMode java/nio/channels/FileChannel MapMode icuDataFiles Ljava/util/List; NLjava/util/List; MAGIC1 B???? MAGIC2 ' CHAR_SET_
CHAR_SIZE_ #MAGIC_NUMBER_AUTHENTICATION_FAILED_ Ljava/lang/String; )ICU data file error: Not an ICU data file * HEADER_AUTHENTICATION_FAILED_ aICU data file error: Header authentication failed, please check if you have a valid ICU data file - $assertionsDisabled Z ()V 1 2
3 this 3Lcom/groupbyinc/flux/common/ibm/icu/impl/ICUBinary; addDataFilesFromPath %(Ljava/lang/String;Ljava/util/List;)V java/lang/String 9 length ()I ; <
: = java/io/File ? pathSeparatorChar C A B @ C indexOf (II)I E F
: G substring (II)Ljava/lang/String; I J
: K trim ()Ljava/lang/String; M N
: O separator Q ) @ R endsWith (Ljava/lang/String;)Z T U
: V (Ljava/lang/String;)V 1 X
@ Y java/lang/StringBuilder [
\ 3 ^ addDataFilesFromFolder :(Ljava/io/File;Ljava/lang/StringBuilder;Ljava/util/List;)V ` a
b pathLimit I sepIndex path dataPath files pathStart listFiles ()[Ljava/io/File; k l
@ m [Ljava/io/File; o
\ = append (C)Ljava/lang/StringBuilder; r s
\ t getName v N
@ w .txt y -(Ljava/lang/String;)Ljava/lang/StringBuilder; r {
\ | isDirectory ()Z ~
@ ? .dat ? mapFile %(Ljava/io/File;)Ljava/nio/ByteBuffer; ? ?
? validate (Ljava/nio/ByteBuffer;)Z ? ?
? toString ? N
\ ? *(Ljava/lang/String;Ljava/nio/ByteBuffer;)V 1 ?
? java/util/List ? add (Ljava/lang/Object;)Z ? ? ? ? #(Ljava/lang/String;Ljava/io/File;)V 1 ?
? setLength (I)V ? ?
\ ? pkgBytes Ljava/nio/ByteBuffer; fileName file Ljava/io/File; folder itemPath Ljava/lang/StringBuilder; dataFiles folderPathLength compareKeys 1(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;I)I java/nio/ByteBuffer ? get (I)B ? ?
? ? java/lang/CharSequence ? ? = charAt (I)C ? ? ? ? c2 diff i key Ljava/lang/CharSequence; bytes offset (Ljava/lang/CharSequence;[BI)I [B getData )(Ljava/lang/String;)Ljava/nio/ByteBuffer; S(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Z)Ljava/nio/ByteBuffer; ? ?
? R(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;)Ljava/nio/ByteBuffer; loader Ljava/lang/ClassLoader; resourceName getRequiredData java/io/IOException ? getDataFromFile ? ?
? /com/groupbyinc/flux/common/ibm/icu/impl/ICUData ? 7com/groupbyinc/flux/common/ibm/icu/impl/ClassLoaderUtil ? getClassLoader *(Ljava/lang/Class;)Ljava/lang/ClassLoader; ? ?
? ? 6com/groupbyinc/flux/common/ibm/icu/impl/data/icudt59b/ ? getStream A(Ljava/lang/ClassLoader;Ljava/lang/String;Z)Ljava/io/InputStream; ? ?
? ? java/io/InputStream ? *getByteBufferFromInputStreamAndCloseStream ,(Ljava/io/InputStream;)Ljava/nio/ByteBuffer; ? ?
? java/lang/ClassLoader ? ?com/groupbyinc/flux/common/ibm/icu/util/ICUUncheckedIOException ? (Ljava/lang/Throwable;)V 1 ?
? ? is Ljava/io/InputStream; e Ljava/io/IOException; required buffer iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? next ()Ljava/lang/Object; ? ? ? ? ? ?
? data dataFile