468 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			468 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public abstract Lcom/google/common/io/BaseEncoding;
 | |
| .super Ljava/lang/Object;
 | |
| .source "BaseEncoding.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Lcom/google/common/annotations/GwtCompatible;
 | |
|     emulated = true
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lcom/google/common/io/ElementTypesAreNonnullByDefault;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/common/io/BaseEncoding$SeparatedBaseEncoding;,
 | |
|         Lcom/google/common/io/BaseEncoding$Base64Encoding;,
 | |
|         Lcom/google/common/io/BaseEncoding$Base16Encoding;,
 | |
|         Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;,
 | |
|         Lcom/google/common/io/BaseEncoding$Alphabet;,
 | |
|         Lcom/google/common/io/BaseEncoding$DecodingException;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final BASE16:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
| .field private static final BASE32:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
| .field private static final BASE32_HEX:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
| .field private static final BASE64:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
| .field private static final BASE64_URL:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$Base64Encoding;
 | |
| 
 | |
|     const/16 v1, 0x3d
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v1}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const-string v2, "base64()"
 | |
| 
 | |
|     const-string v3, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 | |
| 
 | |
|     invoke-direct {v0, v2, v3, v1}, Lcom/google/common/io/BaseEncoding$Base64Encoding;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Character;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/io/BaseEncoding;->BASE64:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$Base64Encoding;
 | |
| 
 | |
|     const-string v2, "base64Url()"
 | |
| 
 | |
|     const-string v3, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {v0, v2, v3, v1}, Lcom/google/common/io/BaseEncoding$Base64Encoding;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Character;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/io/BaseEncoding;->BASE64_URL:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;
 | |
| 
 | |
|     const-string v2, "base32()"
 | |
| 
 | |
|     const-string v3, "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {v0, v2, v3, v1}, Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Character;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/io/BaseEncoding;->BASE32:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     .line 7
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;
 | |
| 
 | |
|     const-string v2, "base32Hex()"
 | |
| 
 | |
|     const-string v3, "0123456789ABCDEFGHIJKLMNOPQRSTUV"
 | |
| 
 | |
|     .line 8
 | |
|     invoke-direct {v0, v2, v3, v1}, Lcom/google/common/io/BaseEncoding$StandardBaseEncoding;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Character;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/io/BaseEncoding;->BASE32_HEX:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     .line 9
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$Base16Encoding;
 | |
| 
 | |
|     const-string v1, "base16()"
 | |
| 
 | |
|     const-string v2, "0123456789ABCDEF"
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Lcom/google/common/io/BaseEncoding$Base16Encoding;-><init>(Ljava/lang/String;Ljava/lang/String;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/common/io/BaseEncoding;->BASE16:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static base16()Lcom/google/common/io/BaseEncoding;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/io/BaseEncoding;->BASE16:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static base32()Lcom/google/common/io/BaseEncoding;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/io/BaseEncoding;->BASE32:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static base32Hex()Lcom/google/common/io/BaseEncoding;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/io/BaseEncoding;->BASE32_HEX:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static base64()Lcom/google/common/io/BaseEncoding;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/io/BaseEncoding;->BASE64:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static base64Url()Lcom/google/common/io/BaseEncoding;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/common/io/BaseEncoding;->BASE64_URL:Lcom/google/common/io/BaseEncoding;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private static extract([BI)[B
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p0
 | |
| 
 | |
|     if-ne p1, v0, :cond_0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-array v0, p1, [B
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p0, v1, v0, v1, p1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static ignoringReader(Ljava/io/Reader;Ljava/lang/String;)Ljava/io/Reader;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$3;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Lcom/google/common/io/BaseEncoding$3;-><init>(Ljava/io/Reader;Ljava/lang/String;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static separatingAppendable(Ljava/lang/Appendable;Ljava/lang/String;I)Ljava/lang/Appendable;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     if-lez p2, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$4;
 | |
| 
 | |
|     invoke-direct {v0, p2, p0, p1}, Lcom/google/common/io/BaseEncoding$4;-><init>(ILjava/lang/Appendable;Ljava/lang/String;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static separatingWriter(Ljava/io/Writer;Ljava/lang/String;I)Ljava/io/Writer;
 | |
|     .locals 0
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2}, Lcom/google/common/io/BaseEncoding;->separatingAppendable(Ljava/lang/Appendable;Ljava/lang/String;I)Ljava/lang/Appendable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     new-instance p2, Lcom/google/common/io/BaseEncoding$5;
 | |
| 
 | |
|     invoke-direct {p2, p1, p0}, Lcom/google/common/io/BaseEncoding$5;-><init>(Ljava/lang/Appendable;Ljava/io/Writer;)V
 | |
| 
 | |
|     return-object p2
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public abstract canDecode(Ljava/lang/CharSequence;)Z
 | |
| .end method
 | |
| 
 | |
| .method public final decode(Ljava/lang/CharSequence;)[B
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0, p1}, Lcom/google/common/io/BaseEncoding;->decodeChecked(Ljava/lang/CharSequence;)[B
 | |
| 
 | |
|     move-result-object p1
 | |
|     :try_end_0
 | |
|     .catch Lcom/google/common/io/BaseEncoding$DecodingException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public final decodeChecked(Ljava/lang/CharSequence;)[B
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Lcom/google/common/io/BaseEncoding$DecodingException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/common/io/BaseEncoding;->trimTrailingPadding(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Lcom/google/common/io/BaseEncoding;->maxDecodedSize(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     new-array v0, v0, [B
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v0, p1}, Lcom/google/common/io/BaseEncoding;->decodeTo([BLjava/lang/CharSequence;)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v0, p1}, Lcom/google/common/io/BaseEncoding;->extract([BI)[B
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public abstract decodeTo([BLjava/lang/CharSequence;)I
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Lcom/google/common/io/BaseEncoding$DecodingException;
 | |
|         }
 | |
|     .end annotation
 | |
| .end method
 | |
| 
 | |
| .method public final decodingSource(Lcom/google/common/io/CharSource;)Lcom/google/common/io/ByteSource;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$2;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Lcom/google/common/io/BaseEncoding$2;-><init>(Lcom/google/common/io/BaseEncoding;Lcom/google/common/io/CharSource;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public abstract decodingStream(Ljava/io/Reader;)Ljava/io/InputStream;
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| .end method
 | |
| 
 | |
| .method public encode([B)Ljava/lang/String;
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     array-length v0, p1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {p0, p1, v1, v0}, Lcom/google/common/io/BaseEncoding;->encode([BII)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public final encode([BII)Ljava/lang/String;
 | |
|     .locals 2
 | |
| 
 | |
|     add-int v0, p2, p3
 | |
| 
 | |
|     .line 2
 | |
|     array-length v1, p1
 | |
| 
 | |
|     invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/common/io/BaseEncoding;->maxEncodedSize(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
 | |
| 
 | |
|     .line 4
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0, v0, p1, p2, p3}, Lcom/google/common/io/BaseEncoding;->encodeTo(Ljava/lang/Appendable;[BII)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 6
 | |
|     new-instance p2, Ljava/lang/AssertionError;
 | |
| 
 | |
|     invoke-direct {p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     throw p2
 | |
| .end method
 | |
| 
 | |
| .method public abstract encodeTo(Ljava/lang/Appendable;[BII)V
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| .end method
 | |
| 
 | |
| .method public final encodingSink(Lcom/google/common/io/CharSink;)Lcom/google/common/io/ByteSink;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lcom/google/common/io/BaseEncoding$1;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Lcom/google/common/io/BaseEncoding$1;-><init>(Lcom/google/common/io/BaseEncoding;Lcom/google/common/io/CharSink;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public abstract encodingStream(Ljava/io/Writer;)Ljava/io/OutputStream;
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| .end method
 | |
| 
 | |
| .method public abstract lowerCase()Lcom/google/common/io/BaseEncoding;
 | |
| .end method
 | |
| 
 | |
| .method public abstract maxDecodedSize(I)I
 | |
| .end method
 | |
| 
 | |
| .method public abstract maxEncodedSize(I)I
 | |
| .end method
 | |
| 
 | |
| .method public abstract omitPadding()Lcom/google/common/io/BaseEncoding;
 | |
| .end method
 | |
| 
 | |
| .method public trimTrailingPadding(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public abstract upperCase()Lcom/google/common/io/BaseEncoding;
 | |
| .end method
 | |
| 
 | |
| .method public abstract withPadChar(C)Lcom/google/common/io/BaseEncoding;
 | |
| .end method
 | |
| 
 | |
| .method public abstract withSeparator(Ljava/lang/String;I)Lcom/google/common/io/BaseEncoding;
 | |
| .end method
 |