![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.BaseEncoding$StandardBaseEncoding.class Maven / Gradle / Ivy
???? 4? *com/google/common/io/BaseEncoding$Alphabet
java/lang/String toCharArray ()[C
(Ljava/lang/String;[C)V
6com/google/common/io/BaseEncoding$StandardBaseEncoding D(Lcom/google/common/io/BaseEncoding$Alphabet;Ljava/lang/Character;)V
!com/google/common/io/BaseEncoding ()V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; alphabet ,Lcom/google/common/io/BaseEncoding$Alphabet;
" # $ % & java/lang/Character charValue ()C
( ) * matches (C)Z , ,Padding character %s was already in alphabet
. / 0
checkArgument ((ZLjava/lang/String;Ljava/lang/Object;)V 2 3 4 paddingChar Ljava/lang/Character; 6 7 8
charsPerChunk I : ; 8
bytesPerChunk = > ? @ A java/math/RoundingMode CEILING Ljava/math/RoundingMode;
C D E F G com/google/common/math/IntMath divide (IILjava/math/RoundingMode;)I I 8com/google/common/io/BaseEncoding$StandardBaseEncoding$1
H K L K(Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;Ljava/io/Writer;)V
N O P checkPositionIndexes (III)V
R S T U V java/lang/Math min (II)I
X Y Z
encodeChunkTo (Ljava/lang/Appendable;[BII)V
\ / ] (Z)V _ ` 8 bitsPerChar b c 8 mask
e f g encode (I)C i j k l m java/lang/Appendable append (C)Ljava/lang/Appendable; s t u v w java/lang/CharSequence length ()I s y z g charAt s | } ~ subSequence (II)Ljava/lang/CharSequence;
? ? ? trimTrailingPadding 2(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
? ? ? isValidPaddingStartPosition (I)Z
? ? * canDecode ? 3com/google/common/io/BaseEncoding$DecodingException ? java/lang/StringBuilder
? ? Invalid input length
? ? l ? -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? l ? (I)Ljava/lang/StringBuilder;
? ? ? ? toString ()Ljava/lang/String;
? ? ? (Ljava/lang/String;)V
? ? ? decode (C)I ? ? 8com/google/common/io/BaseEncoding$StandardBaseEncoding$2
? ? ? K(Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;Ljava/io/Reader;)V
? ? ? newInstance f(Lcom/google/common/io/BaseEncoding$Alphabet;Ljava/lang/Character;)Lcom/google/common/io/BaseEncoding;
" ? ? ? valueOf (C)Ljava/lang/Character;
t
y ? 1Separator (%s) cannot contain alphabet characters
? ? ? indexOf (I)I ? /Separator (%s) cannot contain padding character ? 7com/google/common/io/BaseEncoding$SeparatedBaseEncoding
? ? ? 9(Lcom/google/common/io/BaseEncoding;Ljava/lang/String;I)V ? ? ? upperCase #Lcom/google/common/io/BaseEncoding;
? ? ? .()Lcom/google/common/io/BaseEncoding$Alphabet; ? ? ? lowerCase
? ? ? ? ? ?
ignoreCase
? ? ? ?
BaseEncoding.
? ?
? ? l ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? .omitPadding() ? .withPadChar(' ? ')
? ? ? equals (Ljava/lang/Object;)Z
? ? ? ? ? java/util/Objects '(Ljava/lang/Object;Ljava/lang/Object;)Z
? ? w hashCode
? ? ? ? (Ljava/lang/Object;)I RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; 7Lcom/google/errorprone/annotations/concurrent/LazyInit; <(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Character;)V Code LineNumberTable LocalVariableTable this 8Lcom/google/common/io/BaseEncoding$StandardBaseEncoding; name Ljava/lang/String;
alphabetChars MethodParameters "RuntimeVisibleParameterAnnotations
StackMapTable maxEncodedSize bytes encodingStream ((Ljava/io/Writer;)Ljava/io/OutputStream; out Ljava/io/Writer; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; encodeTo i target Ljava/lang/Appendable; [B off len
Exceptions
java/io/IOException charIndex bitBuffer J bitOffset
bitsProcessed maxDecodedSize chars Ljava/lang/CharSequence; padChar C l (Ljava/lang/CharSequence;)Z decodeTo ([BLjava/lang/CharSequence;)I offset chunk charsProcessed minOffset charIdx bytesWritten decodingStream '(Ljava/io/Reader;)Ljava/io/InputStream; reader Ljava/io/Reader; omitPadding %()Lcom/google/common/io/BaseEncoding; withPadChar &(C)Lcom/google/common/io/BaseEncoding;
withSeparator 8(Ljava/lang/String;I)Lcom/google/common/io/BaseEncoding; separator afterEveryChars upper result lower ignore builder Ljava/lang/StringBuilder; that other Ljava/lang/Object;
SourceFile BaseEncoding.java InnerClasses Alphabet StandardBaseEncoding DecodingException SeparatedBaseEncoding 3 4 ? ? B ? ? ?
? ? B ? ? ?
? ? B ? ? ?
? ? ? ? ^ *? Y+,? ? -?
? ?
n o ? * ? ? ? ? ? ? 3 4 ?
? ? 3 ? ? ? ? /*? *+? ? ? ,? +,? !? '? ? +,? -*,? 1? ? q r s t &s )w .x ? / ? ? / / 3 4 ? ? " @ ? 3 ? ? ? ? ? K *? ? 5*? ? 9?