.class Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream; .super Ljava/io/InputStream; .source "ExifInterface.java" # interfaces .implements Ljava/io/DataInput; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/exifinterface/media/ExifInterface; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "ByteOrderedDataInputStream" .end annotation # static fields .field private static final BIG_ENDIAN:Ljava/nio/ByteOrder; .field private static final LITTLE_ENDIAN:Ljava/nio/ByteOrder; # instance fields .field private mByteOrder:Ljava/nio/ByteOrder; .field private mDataInputStream:Ljava/io/DataInputStream; .field final mLength:I .field mPosition:I # direct methods .method static constructor ()V .locals 1 .line 6687 sget-object v0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; sput-object v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; .line 6688 sget-object v0, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder; sput-object v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->BIG_ENDIAN:Ljava/nio/ByteOrder; return-void .end method .method public constructor (Ljava/io/InputStream;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 6697 invoke-direct {p0}, Ljava/io/InputStream;->()V .line 6691 sget-object v0, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder; iput-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; .line 6698 new-instance v0, Ljava/io/DataInputStream; invoke-direct {v0, p1}, Ljava/io/DataInputStream;->(Ljava/io/InputStream;)V iput-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6699 invoke-virtual {v0}, Ljava/io/DataInputStream;->available()I move-result p1 iput p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I const/4 v0, 0x0 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6701 invoke-virtual {p0, p1}, Ljava/io/DataInputStream;->mark(I)V return-void .end method .method public constructor ([B)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 6705 new-instance v0, Ljava/io/ByteArrayInputStream; invoke-direct {v0, p1}, Ljava/io/ByteArrayInputStream;->([B)V invoke-direct {p0, v0}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->(Ljava/io/InputStream;)V return-void .end method # virtual methods .method public available()I .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6732 invoke-virtual {p0}, Ljava/io/DataInputStream;->available()I move-result p0 return p0 .end method .method public getLength()I .locals 0 iget p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I return p0 .end method .method public peek()I .locals 0 iget p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I return p0 .end method .method public read()I .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6738 invoke-virtual {p0}, Ljava/io/DataInputStream;->read()I move-result p0 return p0 .end method .method public read([BII)I .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6743 invoke-virtual {v0, p1, p2, p3}, Ljava/io/DataInputStream;->read([BII)I move-result p1 iget p2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/2addr p2, p1 iput p2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I return p1 .end method .method public readBoolean()Z .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6763 invoke-virtual {p0}, Ljava/io/DataInputStream;->readBoolean()Z move-result p0 return p0 .end method .method public readByte()B .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_1 iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6806 invoke-virtual {p0}, Ljava/io/DataInputStream;->read()I move-result p0 if-ltz p0, :cond_0 int-to-byte p0, p0 return p0 .line 6808 :cond_0 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .line 6804 :cond_1 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public readChar()C .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x2 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6769 invoke-virtual {p0}, Ljava/io/DataInputStream;->readChar()C move-result p0 return p0 .end method .method public readDouble()D .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 6923 invoke-virtual {p0}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->readLong()J move-result-wide v0 invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D move-result-wide v0 return-wide v0 .end method .method public readFloat()F .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 6918 invoke-virtual {p0}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->readInt()I move-result p0 invoke-static {p0}, Ljava/lang/Float;->intBitsToFloat(I)F move-result p0 return p0 .end method .method public readFully([B)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I .line 6791 array-length v1, p1 add-int/2addr v0, v1 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_1 iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; const/4 v0, 0x0 .line 6795 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Ljava/io/DataInputStream;->read([BII)I move-result p0 array-length p1, p1 if-ne p0, p1, :cond_0 return-void .line 6796 :cond_0 new-instance p0, Ljava/io/IOException; const-string p1, "Couldn\'t read up to the length of buffer" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 .line 6793 :cond_1 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public readFully([BII)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/2addr v0, p3 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_1 iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6784 invoke-virtual {p0, p1, p2, p3}, Ljava/io/DataInputStream;->read([BII)I move-result p0 if-ne p0, p3, :cond_0 return-void .line 6785 :cond_0 new-instance p0, Ljava/io/IOException; const-string p1, "Couldn\'t read up to the length of buffer" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 .line 6782 :cond_1 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public readInt()I .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x4 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_3 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6838 invoke-virtual {v0}, Ljava/io/DataInputStream;->read()I move-result v0 iget-object v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6839 invoke-virtual {v1}, Ljava/io/DataInputStream;->read()I move-result v1 iget-object v2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6840 invoke-virtual {v2}, Ljava/io/DataInputStream;->read()I move-result v2 iget-object v3, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6841 invoke-virtual {v3}, Ljava/io/DataInputStream;->read()I move-result v3 or-int v4, v0, v1 or-int/2addr v4, v2 or-int/2addr v4, v3 if-ltz v4, :cond_2 iget-object v4, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; sget-object v5, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; if-ne v4, v5, :cond_0 shl-int/lit8 p0, v3, 0x18 shl-int/lit8 v2, v2, 0x10 add-int/2addr p0, v2 shl-int/lit8 v1, v1, 0x8 add-int/2addr p0, v1 add-int/2addr p0, v0 return p0 :cond_0 sget-object v5, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v4, v5, :cond_1 shl-int/lit8 p0, v0, 0x18 shl-int/lit8 v0, v1, 0x10 add-int/2addr p0, v0 shl-int/lit8 v0, v2, 0x8 add-int/2addr p0, v0 add-int/2addr p0, v3 return p0 .line 6850 :cond_1 new-instance v0, Ljava/io/IOException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Invalid byte order: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .line 6843 :cond_2 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .line 6836 :cond_3 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public readLine()Ljava/lang/String; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string p0, "ExifInterface" const-string v0, "Currently unsupported" .line 6756 invoke-static {p0, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I const/4 p0, 0x0 return-object p0 .end method .method public readLong()J .locals 19 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation move-object/from16 v0, p0 iget v1, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I const/16 v2, 0x8 add-int/2addr v1, v2 iput v1, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v3, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v1, v3, :cond_3 iget-object v1, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6893 invoke-virtual {v1}, Ljava/io/DataInputStream;->read()I move-result v1 iget-object v3, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6894 invoke-virtual {v3}, Ljava/io/DataInputStream;->read()I move-result v3 iget-object v4, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6895 invoke-virtual {v4}, Ljava/io/DataInputStream;->read()I move-result v4 iget-object v5, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6896 invoke-virtual {v5}, Ljava/io/DataInputStream;->read()I move-result v5 iget-object v6, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6897 invoke-virtual {v6}, Ljava/io/DataInputStream;->read()I move-result v6 iget-object v7, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6898 invoke-virtual {v7}, Ljava/io/DataInputStream;->read()I move-result v7 iget-object v8, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6899 invoke-virtual {v8}, Ljava/io/DataInputStream;->read()I move-result v8 iget-object v9, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6900 invoke-virtual {v9}, Ljava/io/DataInputStream;->read()I move-result v9 or-int v10, v1, v3 or-int/2addr v10, v4 or-int/2addr v10, v5 or-int/2addr v10, v6 or-int/2addr v10, v7 or-int/2addr v10, v8 or-int/2addr v10, v9 if-ltz v10, :cond_2 iget-object v10, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; sget-object v11, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; const/16 v12, 0x10 const/16 v13, 0x18 const/16 v14, 0x20 const/16 v15, 0x28 const/16 v16, 0x30 const/16 v17, 0x38 if-ne v10, v11, :cond_0 int-to-long v9, v9 shl-long v9, v9, v17 move/from16 v18, v3 int-to-long v2, v8 shl-long v2, v2, v16 add-long/2addr v9, v2 int-to-long v2, v7 shl-long/2addr v2, v15 add-long/2addr v9, v2 int-to-long v2, v6 shl-long/2addr v2, v14 add-long/2addr v9, v2 int-to-long v2, v5 shl-long/2addr v2, v13 add-long/2addr v9, v2 int-to-long v2, v4 shl-long/2addr v2, v12 add-long/2addr v9, v2 move/from16 v2, v18 int-to-long v2, v2 const/16 v0, 0x8 shl-long/2addr v2, v0 add-long/2addr v9, v2 int-to-long v0, v1 add-long/2addr v9, v0 return-wide v9 :cond_0 move v2, v3 sget-object v3, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v10, v3, :cond_1 int-to-long v0, v1 shl-long v0, v0, v17 int-to-long v2, v2 shl-long v2, v2, v16 add-long/2addr v0, v2 int-to-long v2, v4 shl-long/2addr v2, v15 add-long/2addr v0, v2 int-to-long v2, v5 shl-long/2addr v2, v14 add-long/2addr v0, v2 int-to-long v2, v6 shl-long/2addr v2, v13 add-long/2addr v0, v2 int-to-long v2, v7 shl-long/2addr v2, v12 add-long/2addr v0, v2 int-to-long v2, v8 const/16 v4, 0x8 shl-long/2addr v2, v4 add-long/2addr v0, v2 int-to-long v2, v9 add-long/2addr v0, v2 return-wide v0 .line 6913 :cond_1 new-instance v1, Ljava/io/IOException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Invalid byte order: " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, v0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v1 .line 6902 :cond_2 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V throw v0 .line 6891 :cond_3 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V throw v0 .end method .method public readShort()S .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x2 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_3 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6819 invoke-virtual {v0}, Ljava/io/DataInputStream;->read()I move-result v0 iget-object v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6820 invoke-virtual {v1}, Ljava/io/DataInputStream;->read()I move-result v1 or-int v2, v0, v1 if-ltz v2, :cond_2 iget-object v2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; sget-object v3, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; if-ne v2, v3, :cond_0 shl-int/lit8 p0, v1, 0x8 add-int/2addr p0, v0 :goto_0 int-to-short p0, p0 return p0 :cond_0 sget-object v3, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v2, v3, :cond_1 shl-int/lit8 p0, v0, 0x8 add-int/2addr p0, v1 goto :goto_0 .line 6829 :cond_1 new-instance v0, Ljava/io/IOException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Invalid byte order: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .line 6822 :cond_2 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .line 6817 :cond_3 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public readUTF()Ljava/lang/String; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x2 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6775 invoke-virtual {p0}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUnsignedByte()I .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6751 invoke-virtual {p0}, Ljava/io/DataInputStream;->readUnsignedByte()I move-result p0 return p0 .end method .method public readUnsignedInt()J .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 6884 invoke-virtual {p0}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->readInt()I move-result p0 int-to-long v0, p0 const-wide v2, 0xffffffffL and-long/2addr v0, v2 return-wide v0 .end method .method public readUnsignedShort()I .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/lit8 v0, v0, 0x2 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I if-gt v0, v1, :cond_3 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6870 invoke-virtual {v0}, Ljava/io/DataInputStream;->read()I move-result v0 iget-object v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6871 invoke-virtual {v1}, Ljava/io/DataInputStream;->read()I move-result v1 or-int v2, v0, v1 if-ltz v2, :cond_2 iget-object v2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; sget-object v3, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; if-ne v2, v3, :cond_0 shl-int/lit8 p0, v1, 0x8 add-int/2addr p0, v0 return p0 :cond_0 sget-object v3, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v2, v3, :cond_1 shl-int/lit8 p0, v0, 0x8 add-int/2addr p0, v1 return p0 .line 6880 :cond_1 new-instance v0, Ljava/io/IOException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Invalid byte order: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .line 6873 :cond_2 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .line 6868 :cond_3 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V throw p0 .end method .method public seek(J)V .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I int-to-long v1, v0 cmp-long v1, v1, p1 if-lez v1, :cond_0 const/4 v0, 0x0 iput v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; .line 6715 invoke-virtual {v0}, Ljava/io/DataInputStream;->reset()V iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I .line 6716 invoke-virtual {v0, v1}, Ljava/io/DataInputStream;->mark(I)V goto :goto_0 :cond_0 int-to-long v0, v0 sub-long/2addr p1, v0 :goto_0 long-to-int p1, p1 .line 6721 invoke-virtual {p0, p1}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->skipBytes(I)I move-result p0 if-ne p0, p1, :cond_1 return-void .line 6722 :cond_1 new-instance p0, Ljava/io/IOException; const-string p1, "Couldn\'t seek up to the byteCount" invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 .end method .method public setByteOrder(Ljava/nio/ByteOrder;)V .locals 0 iput-object p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mByteOrder:Ljava/nio/ByteOrder; return-void .end method .method public skipBytes(I)I .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mLength:I iget v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I sub-int/2addr v0, v1 .line 6855 invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I move-result p1 const/4 v0, 0x0 :goto_0 if-ge v0, p1, :cond_0 iget-object v1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mDataInputStream:Ljava/io/DataInputStream; sub-int v2, p1, v0 .line 6858 invoke-virtual {v1, v2}, Ljava/io/DataInputStream;->skipBytes(I)I move-result v1 add-int/2addr v0, v1 goto :goto_0 :cond_0 iget p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I add-int/2addr p1, v0 iput p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataInputStream;->mPosition:I return v0 .end method