.class public Landroidx/versionedparcelable/ParcelUtils; .super Ljava/lang/Object; # annotations .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope; } .end annotation # direct methods .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static fromInputStream(Ljava/io/InputStream;)Landroidx/versionedparcelable/VersionedParcelable; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/io/InputStream;", ")TT;" } .end annotation new-instance v0, Landroidx/versionedparcelable/VersionedParcelStream; const/4 v1, 0x0 invoke-direct {v0, p0, v1}, Landroidx/versionedparcelable/VersionedParcelStream;->(Ljava/io/InputStream;Ljava/io/OutputStream;)V invoke-virtual {v0}, Landroidx/versionedparcelable/VersionedParcelStream;->readVersionedParcelable()Landroidx/versionedparcelable/VersionedParcelable; move-result-object p0 return-object p0 .end method .method public static fromParcelable(Landroid/os/Parcelable;)Landroidx/versionedparcelable/VersionedParcelable; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/os/Parcelable;", ")TT;" } .end annotation instance-of v0, p0, Landroidx/versionedparcelable/ParcelImpl; if-eqz v0, :cond_0 check-cast p0, Landroidx/versionedparcelable/ParcelImpl; invoke-virtual {p0}, Landroidx/versionedparcelable/ParcelImpl;->getVersionedParcel()Landroidx/versionedparcelable/VersionedParcelable; move-result-object p0 return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid parcel" invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method public static toOutputStream(Landroidx/versionedparcelable/VersionedParcelable;Ljava/io/OutputStream;)V .locals 2 new-instance v0, Landroidx/versionedparcelable/VersionedParcelStream; const/4 v1, 0x0 invoke-direct {v0, v1, p1}, Landroidx/versionedparcelable/VersionedParcelStream;->(Ljava/io/InputStream;Ljava/io/OutputStream;)V invoke-virtual {v0, p0}, Landroidx/versionedparcelable/VersionedParcelStream;->writeVersionedParcelable(Landroidx/versionedparcelable/VersionedParcelable;)V invoke-virtual {v0}, Landroidx/versionedparcelable/VersionedParcelStream;->closeField()V return-void .end method .method public static toParcelable(Landroidx/versionedparcelable/VersionedParcelable;)Landroid/os/Parcelable; .locals 1 new-instance v0, Landroidx/versionedparcelable/ParcelImpl; invoke-direct {v0, p0}, Landroidx/versionedparcelable/ParcelImpl;->(Landroidx/versionedparcelable/VersionedParcelable;)V return-object v0 .end method