153 lines
4.3 KiB
Smali
153 lines
4.3 KiB
Smali
.class Lcom/thoughtworks/xstream/XStream$2;
|
|
.super Ljava/lang/Object;
|
|
.source "XStream.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/thoughtworks/xstream/core/util/CustomObjectInputStream$StreamCallback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/thoughtworks/xstream/XStream;->createObjectInputStream(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;)Ljava/io/ObjectInputStream;
|
|
.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$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/XStream;Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/thoughtworks/xstream/XStream$2;->this$0:Lcom/thoughtworks/xstream/XStream;
|
|
|
|
iput-object p2, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-interface {v0}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public defaultReadObject()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 readObject"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/NotActiveException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public readFieldsFromStream()Ljava/util/Map;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/io/NotActiveException;
|
|
|
|
const-string v1, "not in call to readObject"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/NotActiveException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public readFromStream()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/EOFException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-interface {v0}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->hasMoreChildren()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-interface {v0}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/thoughtworks/xstream/XStream$2;->this$0:Lcom/thoughtworks/xstream/XStream;
|
|
|
|
iget-object v1, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/thoughtworks/xstream/XStream;->unmarshal(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcom/thoughtworks/xstream/XStream$2;->val$reader:Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
|
|
invoke-interface {v1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
return-object v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public registerValidation(Ljava/io/ObjectInputValidation;I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/NotActiveException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/io/NotActiveException;
|
|
|
|
const-string/jumbo p2, "stream inactive"
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/NotActiveException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|