.class Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream; .super Ljava/lang/Object; .source "ByteStreams.java" # interfaces .implements Lcom/google/common/io/ByteArrayDataOutput; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/io/ByteStreams; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "ByteArrayDataOutputStream" .end annotation # instance fields .field final byteArrayOutputSteam:Ljava/io/ByteArrayOutputStream; .field final output:Ljava/io/DataOutput; # direct methods .method constructor (Ljava/io/ByteArrayOutputStream;)V .locals 1 .prologue .line 504 invoke-direct {p0}, Ljava/lang/Object;->()V .line 505 iput-object p1, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->byteArrayOutputSteam:Ljava/io/ByteArrayOutputStream; .line 506 new-instance v0, Ljava/io/DataOutputStream; invoke-direct {v0, p1}, Ljava/io/DataOutputStream;->(Ljava/io/OutputStream;)V iput-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; .line 507 return-void .end method # virtual methods .method public toByteArray()[B .locals 1 .prologue .line 622 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->byteArrayOutputSteam:Ljava/io/ByteArrayOutputStream; invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B move-result-object v0 return-object v0 .end method .method public write(I)V .locals 2 .prologue .line 511 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->write(I)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 515 return-void .line 512 :catch_0 move-exception v0 .line 513 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public write([B)V .locals 2 .prologue .line 519 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->write([B)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 523 return-void .line 520 :catch_0 move-exception v0 .line 521 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public write([BII)V .locals 2 .prologue .line 527 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1, p2, p3}, Ljava/io/DataOutput;->write([BII)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 531 return-void .line 528 :catch_0 move-exception v0 .line 529 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeBoolean(Z)V .locals 2 .prologue .line 535 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeBoolean(Z)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 539 return-void .line 536 :catch_0 move-exception v0 .line 537 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeByte(I)V .locals 2 .prologue .line 543 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeByte(I)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 547 return-void .line 544 :catch_0 move-exception v0 .line 545 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeBytes(Ljava/lang/String;)V .locals 2 .prologue .line 551 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeBytes(Ljava/lang/String;)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 555 return-void .line 552 :catch_0 move-exception v0 .line 553 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeChar(I)V .locals 2 .prologue .line 559 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeChar(I)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 563 return-void .line 560 :catch_0 move-exception v0 .line 561 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeChars(Ljava/lang/String;)V .locals 2 .prologue .line 567 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeChars(Ljava/lang/String;)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 571 return-void .line 568 :catch_0 move-exception v0 .line 569 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeDouble(D)V .locals 3 .prologue .line 575 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1, p2}, Ljava/io/DataOutput;->writeDouble(D)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 579 return-void .line 576 :catch_0 move-exception v0 .line 577 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeFloat(F)V .locals 2 .prologue .line 583 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeFloat(F)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 587 return-void .line 584 :catch_0 move-exception v0 .line 585 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeInt(I)V .locals 2 .prologue .line 591 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeInt(I)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 595 return-void .line 592 :catch_0 move-exception v0 .line 593 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeLong(J)V .locals 3 .prologue .line 599 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1, p2}, Ljava/io/DataOutput;->writeLong(J)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 603 return-void .line 600 :catch_0 move-exception v0 .line 601 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeShort(I)V .locals 2 .prologue .line 607 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeShort(I)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 611 return-void .line 608 :catch_0 move-exception v0 .line 609 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method .method public writeUTF(Ljava/lang/String;)V .locals 2 .prologue .line 615 :try_start_0 iget-object v0, p0, Lcom/google/common/io/ByteStreams$ByteArrayDataOutputStream;->output:Ljava/io/DataOutput; invoke-interface {v0, p1}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .line 619 return-void .line 616 :catch_0 move-exception v0 .line 617 new-instance v1, Ljava/lang/AssertionError; invoke-direct {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 .end method