.class Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream; .super Ljava/lang/Object; .source "ByteStreams.java" # interfaces .implements Lcom/google/common/io/ByteArrayDataInput; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/io/ByteStreams; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "ByteArrayDataInputStream" .end annotation # instance fields .field public final input:Ljava/io/DataInput; # direct methods .method public constructor (Ljava/io/ByteArrayInputStream;)V .locals 1 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 new-instance v0, Ljava/io/DataInputStream; invoke-direct {v0, p1}, Ljava/io/DataInputStream;->(Ljava/io/InputStream;)V iput-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; return-void .end method # virtual methods .method public readBoolean()Z .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readBoolean()Z move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readByte()B .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readByte()B move-result v0 :try_end_0 .catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 :catch_1 move-exception v0 .line 3 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readChar()C .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readChar()C move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readDouble()D .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readDouble()D move-result-wide v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-wide v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readFloat()F .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readFloat()F move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readFully([B)V .locals 1 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0, p1}, Ljava/io/DataInput;->readFully([B)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-void :catch_0 move-exception p1 .line 2 new-instance v0, Ljava/lang/IllegalStateException; invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v0 .end method .method public readFully([BII)V .locals 1 .line 3 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0, p1, p2, p3}, Ljava/io/DataInput;->readFully([BII)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-void :catch_0 move-exception p1 .line 4 new-instance p2, Ljava/lang/IllegalStateException; invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw p2 .end method .method public readInt()I .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readInt()I move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readLine()Ljava/lang/String; .locals 2 .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readLine()Ljava/lang/String; move-result-object v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-object v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readLong()J .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readLong()J move-result-wide v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-wide v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readShort()S .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readShort()S move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readUTF()Ljava/lang/String; .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readUTF()Ljava/lang/String; move-result-object v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return-object v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readUnsignedByte()I .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readUnsignedByte()I move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public readUnsignedShort()I .locals 2 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0}, Ljava/io/DataInput;->readUnsignedShort()I move-result v0 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return v0 :catch_0 move-exception v0 .line 2 new-instance v1, Ljava/lang/IllegalStateException; invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v1 .end method .method public skipBytes(I)I .locals 1 .line 1 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataInputStream;->input:Ljava/io/DataInput; invoke-interface {v0, p1}, Ljava/io/DataInput;->skipBytes(I)I move-result p1 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 return p1 :catch_0 move-exception p1 .line 2 new-instance v0, Ljava/lang/IllegalStateException; invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/Throwable;)V throw v0 .end method