2022-06-10 21:38:30 +09:00

129 lines
3.7 KiB
Smali

.class Lcom/thoughtworks/xstream/XStream$1;
.super Ljava/lang/Object;
.source "XStream.java"
# interfaces
.implements Lcom/thoughtworks/xstream/core/util/CustomObjectOutputStream$StreamCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/thoughtworks/xstream/XStream;->createObjectOutputStream(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;)Ljava/io/ObjectOutputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/thoughtworks/xstream/XStream;
.field public final synthetic val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
# direct methods
.method public constructor <init>(Lcom/thoughtworks/xstream/XStream;Lcom/thoughtworks/xstream/io/StatefulWriter;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/thoughtworks/xstream/XStream$1;->this$0:Lcom/thoughtworks/xstream/XStream;
iput-object p2, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/StatefulWriter;->state()I
move-result v0
sget v1, Lcom/thoughtworks/xstream/io/StatefulWriter;->STATE_CLOSED:I
if-eq v0, v1, :cond_0
.line 2
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/StatefulWriter;->endNode()V
.line 3
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/StatefulWriter;->close()V
:cond_0
return-void
.end method
.method public defaultWriteObject()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/NotActiveException;
}
.end annotation
.line 1
new-instance v0, Ljava/io/NotActiveException;
const-string v1, "not in call to writeObject"
invoke-direct {v0, v1}, Ljava/io/NotActiveException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public flush()V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/StatefulWriter;->flush()V
return-void
.end method
.method public writeFieldsToStream(Ljava/util/Map;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/NotActiveException;
}
.end annotation
.line 1
new-instance p1, Ljava/io/NotActiveException;
const-string v0, "not in call to writeObject"
invoke-direct {p1, v0}, Ljava/io/NotActiveException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeToStream(Ljava/lang/Object;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$1;->this$0:Lcom/thoughtworks/xstream/XStream;
iget-object v1, p0, Lcom/thoughtworks/xstream/XStream$1;->val$statefulWriter:Lcom/thoughtworks/xstream/io/StatefulWriter;
invoke-virtual {v0, p1, v1}, Lcom/thoughtworks/xstream/XStream;->marshal(Ljava/lang/Object;Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;)V
return-void
.end method