265 lines
7.8 KiB
Smali
265 lines
7.8 KiB
Smali
.class public Lcom/thoughtworks/xstream/io/xml/JDomDriver;
|
|
.super Lcom/thoughtworks/xstream/io/xml/AbstractXmlDriver;
|
|
.source "JDomDriver.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder;
|
|
|
|
invoke-direct {v0}, Lcom/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder;-><init>()V
|
|
|
|
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/xml/AbstractXmlDriver;-><init>(Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/xml/AbstractXmlDriver;-><init>(Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/io/xml/XmlFriendlyReplacer;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/xml/JDomDriver;-><init>(Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createReader(Ljava/io/File;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
.locals 2
|
|
|
|
.line 16
|
|
:try_start_0
|
|
new-instance v0, Lorg/jdom/input/SAXBuilder;
|
|
|
|
invoke-direct {v0}, Lorg/jdom/input/SAXBuilder;-><init>()V
|
|
|
|
.line 17
|
|
invoke-virtual {v0, p1}, Lorg/jdom/input/SAXBuilder;->build(Ljava/io/File;)Lorg/jdom/Document;
|
|
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/JDomReader;
|
|
|
|
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;->getNameCoder()Lcom/thoughtworks/xstream/io/naming/NameCoder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/thoughtworks/xstream/io/xml/JDomReader;-><init>(Lorg/jdom/Document;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Lorg/jdom/JDOMException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 19
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 20
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public createReader(Ljava/io/InputStream;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
.locals 2
|
|
|
|
.line 6
|
|
:try_start_0
|
|
new-instance v0, Lorg/jdom/input/SAXBuilder;
|
|
|
|
invoke-direct {v0}, Lorg/jdom/input/SAXBuilder;-><init>()V
|
|
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lorg/jdom/input/SAXBuilder;->build(Ljava/io/InputStream;)Lorg/jdom/Document;
|
|
|
|
move-result-object p1
|
|
|
|
.line 8
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/JDomReader;
|
|
|
|
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;->getNameCoder()Lcom/thoughtworks/xstream/io/naming/NameCoder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/thoughtworks/xstream/io/xml/JDomReader;-><init>(Lorg/jdom/Document;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Lorg/jdom/JDOMException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 9
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 10
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public createReader(Ljava/io/Reader;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
.locals 2
|
|
|
|
.line 1
|
|
:try_start_0
|
|
new-instance v0, Lorg/jdom/input/SAXBuilder;
|
|
|
|
invoke-direct {v0}, Lorg/jdom/input/SAXBuilder;-><init>()V
|
|
|
|
.line 2
|
|
invoke-virtual {v0, p1}, Lorg/jdom/input/SAXBuilder;->build(Ljava/io/Reader;)Lorg/jdom/Document;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/JDomReader;
|
|
|
|
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;->getNameCoder()Lcom/thoughtworks/xstream/io/naming/NameCoder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/thoughtworks/xstream/io/xml/JDomReader;-><init>(Lorg/jdom/Document;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Lorg/jdom/JDOMException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 4
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public createReader(Ljava/net/URL;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
|
|
.locals 2
|
|
|
|
.line 11
|
|
:try_start_0
|
|
new-instance v0, Lorg/jdom/input/SAXBuilder;
|
|
|
|
invoke-direct {v0}, Lorg/jdom/input/SAXBuilder;-><init>()V
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Lorg/jdom/input/SAXBuilder;->build(Ljava/net/URL;)Lorg/jdom/Document;
|
|
|
|
move-result-object p1
|
|
|
|
.line 13
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/JDomReader;
|
|
|
|
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;->getNameCoder()Lcom/thoughtworks/xstream/io/naming/NameCoder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/thoughtworks/xstream/io/xml/JDomReader;-><init>(Lorg/jdom/Document;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Lorg/jdom/JDOMException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 14
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 15
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
|
|
|
|
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public createWriter(Ljava/io/OutputStream;)Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;
|
|
.locals 2
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/PrettyPrintWriter;
|
|
|
|
new-instance v1, Ljava/io/OutputStreamWriter;
|
|
|
|
invoke-direct {v1, p1}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;)V
|
|
|
|
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/xml/PrettyPrintWriter;-><init>(Ljava/io/Writer;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public createWriter(Ljava/io/Writer;)Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/thoughtworks/xstream/io/xml/PrettyPrintWriter;
|
|
|
|
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;->getNameCoder()Lcom/thoughtworks/xstream/io/naming/NameCoder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/thoughtworks/xstream/io/xml/PrettyPrintWriter;-><init>(Ljava/io/Writer;Lcom/thoughtworks/xstream/io/naming/NameCoder;)V
|
|
|
|
return-object v0
|
|
.end method
|