
com.groupbyinc.flux.common.Base64.class Maven / Gradle / Ivy
???? 3r !com/groupbyinc/flux/common/Base64 java/lang/Object Base64.java .com/groupbyinc/flux/common/Base64$OutputStream OutputStream -com/groupbyinc/flux/common/Base64$InputStream InputStream
NO_OPTIONS I ENCODE DECODE GZIP DONT_GUNZIP DO_BREAK_LINES URL_SAFE ORDERED MAX_LINE_LENGTH L EQUALS_SIGN B = NEW_LINE
PREFERRED_ENCODING Ljava/nio/charset/Charset; WHITE_SPACE_ENC???? EQUALS_SIGN_ENC???? _STANDARD_ALPHABET [B _STANDARD_DECODABET _URL_SAFE_ALPHABET _URL_SAFE_DECODABET _ORDERED_ALPHABET _ORDERED_DECODABET $assertionsDisabled Z getAlphabet (I)[B , * 4 . * 6 ) * 8 options getDecodabet - * < / * > + * @ ()V B C
D this #Lcom/groupbyinc/flux/common/Base64;
encode3to4
([B[BII)[B ([BII[BII)[B H J
K b4
threeBytes numSigBytes 2 3
P * source srcOffset destination
destOffset ALPHABET inBuff encode -(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V java/nio/ByteBuffer [ hasRemaining ()Z ] ^
\ _ remaining ()I a b
\ c java/lang/Math e min (II)I g h
f i get ([BII)Ljava/nio/ByteBuffer; k l
\ m H I
o put ([B)Ljava/nio/ByteBuffer; q r
\ s rem raw Ljava/nio/ByteBuffer; encoded raw3 enc4 -(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)V java/nio/CharBuffer | (C)Ljava/nio/CharBuffer; q ~
} i Ljava/nio/CharBuffer; encodeBytes ([B)Ljava/lang/String; java/io/IOException ? ([BIII)Ljava/lang/String; ? ?
? java/lang/String ? 0 1 ? java/lang/AssertionError ?
getMessage ()Ljava/lang/String; ? ?
? ? (Ljava/lang/Object;)V B ?
? ?
? D ex Ljava/io/IOException; Ljava/lang/String; ([BI)Ljava/lang/String; ([BII)Ljava/lang/String; off len encodeBytesToBytes ([BIII)[B ? ?
? # $ ? ([BLjava/nio/charset/Charset;)V B ?
? ? ([B)[B java/lang/StringBuilder ?
? D ;IOExceptions only come from GZipping, which is turned off: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? toString ? ?
? ? java/lang/Exception ? java/lang/NullPointerException ? Cannot serialize a null array. ? (Ljava/lang/String;)V B ?
? ? "java/lang/IllegalArgumentException ? Cannot have negative offset: ? (I)Ljava/lang/StringBuilder; ? ?
? ?
? ? Cannot have length offset: ? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? ACannot have offset of %d and length of %d with array of length %d ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? java/io/ByteArrayOutputStream ?
? D (Ljava/io/OutputStream;I)V B ?
? java/util/zip/GZIPOutputStream ? (Ljava/io/OutputStream;)V B ?
? ? write ([BII)V ? ?
? ? close ? C
? ?
?
? ? java/lang/Throwable ? toByteArray ()[B ? ?
? ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? e baos Ljava/io/ByteArrayOutputStream; gzos Ljava/util/zip/GZIPOutputStream; b64os 0Lcom/groupbyinc/flux/common/Base64$OutputStream; finalOut
breakLines encLen outBuff d len2
lineLength
decode4to3
([BI[BII)I Source array was null.
Destination array was null. RSource array with length %d cannot have offset of %d and still process four bytes. VDestination array with length %d cannot have offset of %d and still store three bytes. ; 3
DECODABET decode ?
decoded Cannot decode null source array. JSource array with length %d cannot have offset of %d and process %d bytes. SBase64-encoded string must have at least four characters, but length specified was
EFound equals sign at position %d of the base64 string, not at the end!
? ? :Bad Base64 input character decimal %d in array position %d$ len34 outBuffPosn b4Posn sbiDecode out (Ljava/lang/String;)[B (Ljava/lang/String;I)[B,
- s Input string was null.0 getBytes (Ljava/nio/charset/Charset;)[B23
?4 ? ? java/io/ByteArrayInputStream8 ([B)V B:
9; java/util/zip/GZIPInputStream= (Ljava/io/InputStream;)V B?
>@ read ([B)IBC
>D
? ?
> ?
9 ? bais Ljava/io/ByteArrayInputStream; gzis Ljava/util/zip/GZIPInputStream; buffer length head bytes
dontGunzip
access$000 x0
access$100 x1 x2 x3 x4 x5
access$200
access$300 java/lang/Class] desiredAssertionStatus_ ^
^` US-ASCIIb java/nio/charset/Charsetd forName .(Ljava/lang/String;)Ljava/nio/charset/Charset;fg
eh
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses !
j
j
j
j
j
j
j
j
j j ! j " # $ % j &