138 lines
3.6 KiB
Smali
138 lines
3.6 KiB
Smali
.class public Lcom/thoughtworks/xstream/io/xml/SjsxpDriver;
|
|
.super Lcom/thoughtworks/xstream/io/xml/StaxDriver;
|
|
.source "SjsxpDriver.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/xml/StaxDriver;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/io/xml/QNameMap;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/xml/StaxDriver;-><init>(Lcom/thoughtworks/xstream/io/xml/QNameMap;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/io/xml/QNameMap;Lcom/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder;)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2}, Lcom/thoughtworks/xstream/io/xml/StaxDriver;-><init>(Lcom/thoughtworks/xstream/io/xml/QNameMap;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder;)V
|
|
.locals 0
|
|
|
|
.line 4
|
|
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/xml/StaxDriver;-><init>(Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createInputFactory()Ljavax/xml/stream/XMLInputFactory;
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
const-string v0, "com.sun.xml.internal.stream.XMLInputFactoryImpl"
|
|
|
|
.line 1
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljavax/xml/stream/XMLInputFactory;
|
|
:try_end_0
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
const-string v2, "Cannot create SJSXP (Sun JDK 6 StAX) XMLInputFaqctory instance."
|
|
|
|
invoke-direct {v1, v2, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public createOutputFactory()Ljavax/xml/stream/XMLOutputFactory;
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
const-string v0, "com.sun.xml.internal.stream.XMLOutputFactoryImpl"
|
|
|
|
.line 1
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljavax/xml/stream/XMLOutputFactory;
|
|
:try_end_0
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
.line 2
|
|
:goto_0
|
|
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
const-string v2, "Cannot create SJSXP (Sun JDK 6 StAX) XMLOutputFaqctory instance."
|
|
|
|
invoke-direct {v1, v2, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|