.class Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream; .super Ljava/io/FilterOutputStream; .source "ExifInterface.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/exifinterface/media/ExifInterface; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "ByteOrderedDataOutputStream" .end annotation # instance fields .field private mByteOrder:Ljava/nio/ByteOrder; .field private final mOutputStream:Ljava/io/OutputStream; # direct methods .method public constructor (Ljava/io/OutputStream;Ljava/nio/ByteOrder;)V .locals 0 .line 6938 invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;->(Ljava/io/OutputStream;)V iput-object p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; iput-object p2, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; return-void .end method # virtual methods .method public setByteOrder(Ljava/nio/ByteOrder;)V .locals 0 iput-object p1, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; return-void .end method .method public write([B)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; .line 6949 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write([B)V return-void .end method .method public write([BII)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; .line 6954 invoke-virtual {p0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V return-void .end method .method public writeByte(I)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; .line 6958 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V return-void .end method .method public writeInt(I)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; .line 6972 sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; if-ne v0, v1, :cond_0 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; and-int/lit16 v1, p1, 0xff .line 6973 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x8 and-int/lit16 v1, v1, 0xff .line 6974 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x10 and-int/lit16 v1, v1, 0xff .line 6975 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 p1, p1, 0x18 and-int/lit16 p1, p1, 0xff .line 6976 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V goto :goto_0 :cond_0 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; .line 6977 sget-object v1, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v0, v1, :cond_1 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x18 and-int/lit16 v1, v1, 0xff .line 6978 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x10 and-int/lit16 v1, v1, 0xff .line 6979 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x8 and-int/lit16 v1, v1, 0xff .line 6980 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; and-int/lit16 p1, p1, 0xff .line 6981 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V :cond_1 :goto_0 return-void .end method .method public writeShort(S)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; .line 6962 sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; if-ne v0, v1, :cond_0 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; and-int/lit16 v1, p1, 0xff .line 6963 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 p1, p1, 0x8 and-int/lit16 p1, p1, 0xff .line 6964 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V goto :goto_0 :cond_0 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mByteOrder:Ljava/nio/ByteOrder; .line 6965 sget-object v1, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder; if-ne v0, v1, :cond_1 iget-object v0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; ushr-int/lit8 v1, p1, 0x8 and-int/lit16 v1, v1, 0xff .line 6966 invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write(I)V iget-object p0, p0, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream; and-int/lit16 p1, p1, 0xff .line 6967 invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write(I)V :cond_1 :goto_0 return-void .end method .method public writeUnsignedInt(J)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation long-to-int p1, p1 .line 6990 invoke-virtual {p0, p1}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->writeInt(I)V return-void .end method .method public writeUnsignedShort(I)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation int-to-short p1, p1 .line 6986 invoke-virtual {p0, p1}, Landroidx/exifinterface/media/ExifInterface$ByteOrderedDataOutputStream;->writeShort(S)V return-void .end method