This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,64 @@
.class public Lcom/thoughtworks/xstream/io/binary/BinaryStreamDriver;
.super Lcom/thoughtworks/xstream/io/AbstractDriver;
.source "BinaryStreamDriver.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/AbstractDriver;-><init>()V
return-void
.end method
# virtual methods
.method public createReader(Ljava/io/InputStream;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
.locals 1
.line 2
new-instance v0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;-><init>(Ljava/io/InputStream;)V
return-object v0
.end method
.method public createReader(Ljava/io/Reader;)Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
.locals 1
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "The BinaryDriver cannot use character-oriented input streams."
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public createWriter(Ljava/io/OutputStream;)Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;
.locals 1
.line 2
new-instance v0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;-><init>(Ljava/io/OutputStream;)V
return-object v0
.end method
.method public createWriter(Ljava/io/Writer;)Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;
.locals 1
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "The BinaryDriver cannot use character-oriented output streams."
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$1;
.super Ljava/lang/Object;
.source "BinaryStreamReader.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,97 @@
.class Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
.super Ljava/lang/Object;
.source "BinaryStreamReader.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "IdRegistry"
.end annotation
# instance fields
.field private map:Ljava/util/Map;
# direct methods
.method private constructor <init>()V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
return-void
.end method
.method public synthetic constructor <init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$1;)V
.locals 0
.line 3
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;-><init>()V
return-void
.end method
# virtual methods
.method public get(J)Ljava/lang/String;
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
new-instance v1, Ljava/lang/Long;
invoke-direct {v1, p1, p2}, Ljava/lang/Long;-><init>(J)V
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
if-eqz v0, :cond_0
return-object v0
.line 2
:cond_0
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
const-string v1, "Unknown ID : "
invoke-static {v1, p1, p2}, Landroidx/camera/core/l1;->a(Ljava/lang/String;J)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public put(JLjava/lang/String;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->map:Ljava/util/Map;
new-instance v1, Ljava/lang/Long;
invoke-direct {v1, p1, p2}, Ljava/lang/Long;-><init>(J)V
invoke-interface {v0, v1, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
@@ -0,0 +1,598 @@
.class public Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;
.super Ljava/lang/Object;
.source "BinaryStreamReader.java"
# interfaces
.implements Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamReader;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
}
.end annotation
# instance fields
.field private final depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.field private final idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
.field private final in:Ljava/io/DataInputStream;
.field private pushback:Lcom/thoughtworks/xstream/io/binary/Token;
.field private final tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
# direct methods
.method public constructor <init>(Ljava/io/InputStream;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-direct {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;-><init>()V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.line 3
new-instance v0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;-><init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$1;)V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
.line 4
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
invoke-direct {v0}, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;-><init>()V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
.line 5
new-instance v0, Ljava/io/DataInputStream;
invoke-direct {v0, p1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->in:Ljava/io/DataInputStream;
.line 6
invoke-virtual {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->moveDown()V
return-void
.end method
.method private readToken()Lcom/thoughtworks/xstream/io/binary/Token;
.locals 4
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushback:Lcom/thoughtworks/xstream/io/binary/Token;
if-nez v0, :cond_1
.line 2
:try_start_0
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->in:Ljava/io/DataInputStream;
invoke-virtual {v0, v1}, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;->read(Ljava/io/DataInput;)Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v0
.line 3
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v1
const/4 v2, 0x2
if-eq v1, v2, :cond_0
return-object v0
.line 4
:cond_0
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getId()J
move-result-wide v2
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getValue()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v3, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->put(JLjava/lang/String;)V
.line 5
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->readToken()Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
.line 6
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
invoke-direct {v1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
throw v1
:cond_1
const/4 v1, 0x0
.line 7
iput-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushback:Lcom/thoughtworks/xstream/io/binary/Token;
return-object v0
.end method
# virtual methods
.method public appendErrors(Lcom/thoughtworks/xstream/converters/ErrorWriter;)V
.locals 0
return-void
.end method
.method public close()V
.locals 2
.line 1
:try_start_0
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->in:Ljava/io/DataInputStream;
invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 2
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
invoke-direct {v1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public getAttribute(I)Ljava/lang/String;
.locals 1
.line 2
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0, p1}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttribute(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getAttribute(Ljava/lang/String;)Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0, p1}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttribute(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getAttributeCount()I
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttributeCount()I
move-result v0
return v0
.end method
.method public getAttributeName(I)Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0, p1}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttributeName(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getAttributeNames()Ljava/util/Iterator;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttributeNames()Ljava/util/Iterator;
move-result-object v0
return-object v0
.end method
.method public getNodeName()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getValue()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getValue()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public hasMoreChildren()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->hasMoreChildren()Z
move-result v0
return v0
.end method
.method public moveDown()V
.locals 6
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->push()V
.line 2
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->readToken()Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v0
.line 3
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v1
const/4 v2, 0x3
if-ne v1, v2, :cond_4
.line 4
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
iget-object v3, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getId()J
move-result-wide v4
invoke-virtual {v3, v4, v5}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->get(J)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setName(Ljava/lang/String;)V
.line 5
:goto_0
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->readToken()Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v0
.line 6
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v1
if-eq v1, v2, :cond_3
const/4 v3, 0x4
if-eq v1, v3, :cond_2
const/4 v3, 0x5
if-eq v1, v3, :cond_1
const/4 v3, 0x6
if-ne v1, v3, :cond_0
.line 7
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getValue()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setValue(Ljava/lang/String;)V
goto :goto_0
.line 8
:cond_0
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Unexpected token "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw v1
.line 9
:cond_1
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
iget-object v3, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getId()J
move-result-wide v4
invoke-virtual {v3, v4, v5}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->get(J)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/Token;->getValue()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v3, v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->addAttribute(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
.line 10
:cond_2
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setHasMoreChildren(Z)V
.line 11
invoke-virtual {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushBack(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.line 12
:cond_3
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
const/4 v2, 0x1
invoke-virtual {v1, v2}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setHasMoreChildren(Z)V
.line 13
invoke-virtual {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushBack(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.line 14
:cond_4
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
const-string v1, "Expected StartNode"
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public moveUp()V
.locals 5
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->pop()V
const/4 v0, 0x0
move v1, v0
.line 2
:goto_0
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->readToken()Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v2
.line 3
invoke-virtual {v2}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v2
const/4 v3, 0x3
if-eq v2, v3, :cond_4
const/4 v4, 0x4
if-eq v2, v4, :cond_0
goto :goto_0
:cond_0
if-nez v1, :cond_3
.line 4
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->readToken()Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v1
.line 5
invoke-virtual {v1}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v2
if-eq v2, v3, :cond_2
if-ne v2, v4, :cond_1
.line 6
iget-object v2, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v2, v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setHasMoreChildren(Z)V
goto :goto_1
.line 7
:cond_1
new-instance v0, Lcom/thoughtworks/xstream/io/StreamException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Unexpected token "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw v0
.line 8
:cond_2
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
const/4 v2, 0x1
invoke-virtual {v0, v2}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->setHasMoreChildren(Z)V
.line 9
:goto_1
invoke-virtual {p0, v1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushBack(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
:cond_3
add-int/lit8 v1, v1, -0x1
goto :goto_0
:cond_4
add-int/lit8 v1, v1, 0x1
goto :goto_0
.end method
.method public peekNextChild()Ljava/lang/String;
.locals 3
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->depthState:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
invoke-virtual {v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->hasMoreChildren()Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushback:Lcom/thoughtworks/xstream/io/binary/Token;
invoke-virtual {v1}, Lcom/thoughtworks/xstream/io/binary/Token;->getId()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader$IdRegistry;->get(J)Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public pushBack(Lcom/thoughtworks/xstream/io/binary/Token;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushback:Lcom/thoughtworks/xstream/io/binary/Token;
if-nez v0, :cond_0
.line 2
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamReader;->pushback:Lcom/thoughtworks/xstream/io/binary/Token;
return-void
.line 3
:cond_0
new-instance p1, Ljava/lang/Error;
const-string v0, "Cannot push more than one token back"
invoke-direct {p1, v0}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public underlyingReader()Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;
.locals 0
return-object p0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$1;
.super Ljava/lang/Object;
.source "BinaryStreamWriter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,112 @@
.class Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
.super Ljava/lang/Object;
.source "BinaryStreamWriter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "IdRegistry"
.end annotation
# instance fields
.field private ids:Ljava/util/Map;
.field private nextId:J
.field public final synthetic this$0:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
# direct methods
.method private constructor <init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;)V
.locals 2
.line 1
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->this$0:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->nextId:J
.line 3
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->ids:Ljava/util/Map;
return-void
.end method
.method public synthetic constructor <init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$1;)V
.locals 0
.line 4
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;-><init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;)V
return-void
.end method
# virtual methods
.method public getId(Ljava/lang/String;)J
.locals 5
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->ids:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Long;
if-nez v0, :cond_0
.line 2
new-instance v0, Ljava/lang/Long;
iget-wide v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->nextId:J
const-wide/16 v3, 0x1
add-long/2addr v1, v3
iput-wide v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->nextId:J
invoke-direct {v0, v1, v2}, Ljava/lang/Long;-><init>(J)V
.line 3
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->ids:Ljava/util/Map;
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 4
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->this$0:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
new-instance v2, Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v3
invoke-direct {v2, v3, v4, p1}, Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;-><init>(JLjava/lang/String;)V
invoke-static {v1, v2}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->access$100(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;Lcom/thoughtworks/xstream/io/binary/Token;)V
.line 5
:cond_0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
return-wide v0
.end method
@@ -0,0 +1,220 @@
.class public Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;
.super Ljava/lang/Object;
.source "BinaryStreamWriter.java"
# interfaces
.implements Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriter;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
}
.end annotation
# instance fields
.field private final idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
.field private final out:Ljava/io/DataOutputStream;
.field private final tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
# direct methods
.method public constructor <init>(Ljava/io/OutputStream;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;-><init>(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$1;)V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
.line 3
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
invoke-direct {v0}, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;-><init>()V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
.line 4
new-instance v0, Ljava/io/DataOutputStream;
invoke-direct {v0, p1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->out:Ljava/io/DataOutputStream;
return-void
.end method
.method public static synthetic access$100(Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;Lcom/thoughtworks/xstream/io/binary/Token;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->write(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.end method
.method private write(Lcom/thoughtworks/xstream/io/binary/Token;)V
.locals 2
.line 1
:try_start_0
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->tokenFormatter:Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->out:Ljava/io/DataOutputStream;
invoke-virtual {v0, v1, p1}, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;->write(Ljava/io/DataOutput;Lcom/thoughtworks/xstream/io/binary/Token;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 2
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
# virtual methods
.method public addAttribute(Ljava/lang/String;Ljava/lang/String;)V
.locals 3
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$Attribute;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
invoke-virtual {v1, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->getId(Ljava/lang/String;)J
move-result-wide v1
invoke-direct {v0, v1, v2, p2}, Lcom/thoughtworks/xstream/io/binary/Token$Attribute;-><init>(JLjava/lang/String;)V
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->write(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.end method
.method public close()V
.locals 2
.line 1
:try_start_0
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->out:Ljava/io/DataOutputStream;
invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 2
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
invoke-direct {v1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public endNode()V
.locals 1
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$EndNode;
invoke-direct {v0}, Lcom/thoughtworks/xstream/io/binary/Token$EndNode;-><init>()V
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->write(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.end method
.method public flush()V
.locals 2
.line 1
:try_start_0
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->out:Ljava/io/DataOutputStream;
invoke-virtual {v0}, Ljava/io/DataOutputStream;->flush()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 2
new-instance v1, Lcom/thoughtworks/xstream/io/StreamException;
invoke-direct {v1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public setValue(Ljava/lang/String;)V
.locals 1
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$Value;
invoke-direct {v0, p1}, Lcom/thoughtworks/xstream/io/binary/Token$Value;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->write(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.end method
.method public startNode(Ljava/lang/String;)V
.locals 3
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/Token$StartNode;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->idRegistry:Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;
invoke-virtual {v1, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter$IdRegistry;->getId(Ljava/lang/String;)J
move-result-wide v1
invoke-direct {v0, v1, v2}, Lcom/thoughtworks/xstream/io/binary/Token$StartNode;-><init>(J)V
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->write(Lcom/thoughtworks/xstream/io/binary/Token;)V
return-void
.end method
.method public startNode(Ljava/lang/String;Ljava/lang/Class;)V
.locals 0
.line 2
invoke-virtual {p0, p1}, Lcom/thoughtworks/xstream/io/binary/BinaryStreamWriter;->startNode(Ljava/lang/String;)V
return-void
.end method
.method public underlyingWriter()Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;
.locals 0
return-object p0
.end method
@@ -0,0 +1,82 @@
.class Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;
.super Ljava/lang/Object;
.source "ReaderDepthState.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->getAttributeNames()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.field public final synthetic val$attributeIterator:Ljava/util/Iterator;
# direct methods
.method public constructor <init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;Ljava/util/Iterator;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;->this$0:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
iput-object p2, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;->val$attributeIterator:Ljava/util/Iterator;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;->val$attributeIterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
return v0
.end method
.method public next()Ljava/lang/Object;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;->val$attributeIterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
.line 2
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->name:Ljava/lang/String;
return-object v0
.end method
.method public remove()V
.locals 1
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
@@ -0,0 +1,40 @@
.class Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
.super Ljava/lang/Object;
.source "ReaderDepthState.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Attribute"
.end annotation
# instance fields
.field public name:Ljava/lang/String;
.field public value:Ljava/lang/String;
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;-><init>()V
return-void
.end method
@@ -0,0 +1,46 @@
.class Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
.super Ljava/lang/Object;
.source "ReaderDepthState.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "State"
.end annotation
# instance fields
.field public attributes:Ljava/util/List;
.field public hasMoreChildren:Z
.field public name:Ljava/lang/String;
.field public parent:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
.field public value:Ljava/lang/String;
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;-><init>()V
return-void
.end method
@@ -0,0 +1,343 @@
.class Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;
.super Ljava/lang/Object;
.source "ReaderDepthState.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;,
Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
}
.end annotation
# static fields
.field private static final EMPTY_STRING:Ljava/lang/String; = ""
# instance fields
.field private current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public addAttribute(Ljava/lang/String;Ljava/lang/String;)V
.locals 2
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;-><init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;)V
.line 2
iput-object p1, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->name:Ljava/lang/String;
.line 3
iput-object p2, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->value:Ljava/lang/String;
.line 4
iget-object p1, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object p2, p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
if-nez p2, :cond_0
.line 5
new-instance p2, Ljava/util/ArrayList;
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
iput-object p2, p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
.line 6
:cond_0
iget-object p1, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object p1, p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public getAttribute(I)Ljava/lang/String;
.locals 1
.line 6
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
if-nez v0, :cond_0
const/4 p1, 0x0
return-object p1
.line 7
:cond_0
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
.line 8
iget-object p1, p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->value:Ljava/lang/String;
return-object p1
.end method
.method public getAttribute(Ljava/lang/String;)Ljava/lang/String;
.locals 4
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
.line 2
:cond_0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
.line 3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
.line 4
iget-object v3, v2, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->name:Ljava/lang/String;
invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1
.line 5
iget-object p1, v2, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->value:Ljava/lang/String;
return-object p1
:cond_2
return-object v1
.end method
.method public getAttributeCount()I
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
if-nez v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
:goto_0
return v0
.end method
.method public getAttributeName(I)Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
if-nez v0, :cond_0
const/4 p1, 0x0
return-object p1
.line 2
:cond_0
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;
.line 3
iget-object p1, p1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$Attribute;->name:Ljava/lang/String;
return-object p1
.end method
.method public getAttributeNames()Ljava/util/Iterator;
.locals 2
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->attributes:Ljava/util/List;
if-nez v0, :cond_0
.line 2
sget-object v0, Ljava/util/Collections;->EMPTY_SET:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
return-object v0
.line 3
:cond_0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 4
new-instance v1, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;
invoke-direct {v1, p0, v0}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;-><init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;Ljava/util/Iterator;)V
return-object v1
.end method
.method public getName()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->name:Ljava/lang/String;
return-object v0
.end method
.method public getValue()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->value:Ljava/lang/String;
if-nez v0, :cond_0
const-string v0, ""
:cond_0
return-object v0
.end method
.method public hasMoreChildren()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-boolean v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->hasMoreChildren:Z
return v0
.end method
.method public pop()V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iget-object v0, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->parent:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
return-void
.end method
.method public push()V
.locals 2
.line 1
new-instance v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;-><init>(Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$1;)V
.line 2
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iput-object v1, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->parent:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
.line 3
iput-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
return-void
.end method
.method public setHasMoreChildren(Z)V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iput-boolean p1, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->hasMoreChildren:Z
return-void
.end method
.method public setName(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iput-object p1, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->name:Ljava/lang/String;
return-void
.end method
.method public setValue(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState;->current:Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;
iput-object p1, v0, Lcom/thoughtworks/xstream/io/binary/ReaderDepthState$State;->value:Ljava/lang/String;
return-void
.end method
@@ -0,0 +1,92 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$Attribute;
.super Lcom/thoughtworks/xstream/io/binary/Token;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Attribute"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x5
.line 4
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
return-void
.end method
.method public constructor <init>(JLjava/lang/String;)V
.locals 1
const/4 v0, 0x5
.line 1
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
.line 2
iput-wide p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
.line 3
iput-object p3, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public readFrom(Ljava/io/DataInput;B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->readId(Ljava/io/DataInput;B)J
move-result-wide v0
iput-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
.line 2
invoke-virtual {p0, p1}, Lcom/thoughtworks/xstream/io/binary/Token;->readString(Ljava/io/DataInput;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
.method public writeTo(Ljava/io/DataOutput;B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
invoke-virtual {p0, p1, v0, v1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeId(Ljava/io/DataOutput;JB)V
.line 2
iget-object p2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeString(Ljava/io/DataOutput;Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,41 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$EndNode;
.super Lcom/thoughtworks/xstream/io/binary/Token;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "EndNode"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x4
.line 1
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
return-void
.end method
# virtual methods
.method public readFrom(Ljava/io/DataInput;B)V
.locals 0
return-void
.end method
.method public writeTo(Ljava/io/DataOutput;B)V
.locals 0
return-void
.end method
@@ -0,0 +1,196 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
.super Ljava/lang/Object;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Formatter"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private contructToken(B)Lcom/thoughtworks/xstream/io/binary/Token;
.locals 1
const/4 v0, 0x2
if-eq p1, v0, :cond_4
const/4 v0, 0x3
if-eq p1, v0, :cond_3
const/4 v0, 0x4
if-eq p1, v0, :cond_2
const/4 v0, 0x5
if-eq p1, v0, :cond_1
const/4 v0, 0x6
if-ne p1, v0, :cond_0
.line 1
new-instance p1, Lcom/thoughtworks/xstream/io/binary/Token$Value;
invoke-direct {p1}, Lcom/thoughtworks/xstream/io/binary/Token$Value;-><init>()V
return-object p1
.line 2
:cond_0
new-instance p1, Lcom/thoughtworks/xstream/io/StreamException;
const-string v0, "Unknown token type"
invoke-direct {p1, v0}, Lcom/thoughtworks/xstream/io/StreamException;-><init>(Ljava/lang/String;)V
throw p1
.line 3
:cond_1
new-instance p1, Lcom/thoughtworks/xstream/io/binary/Token$Attribute;
invoke-direct {p1}, Lcom/thoughtworks/xstream/io/binary/Token$Attribute;-><init>()V
return-object p1
.line 4
:cond_2
new-instance p1, Lcom/thoughtworks/xstream/io/binary/Token$EndNode;
invoke-direct {p1}, Lcom/thoughtworks/xstream/io/binary/Token$EndNode;-><init>()V
return-object p1
.line 5
:cond_3
new-instance p1, Lcom/thoughtworks/xstream/io/binary/Token$StartNode;
invoke-direct {p1}, Lcom/thoughtworks/xstream/io/binary/Token$StartNode;-><init>()V
return-object p1
.line 6
:cond_4
new-instance p1, Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;
invoke-direct {p1}, Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;-><init>()V
return-object p1
.end method
# virtual methods
.method public read(Ljava/io/DataInput;)Lcom/thoughtworks/xstream/io/binary/Token;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/io/DataInput;->readByte()B
move-result v0
and-int/lit8 v1, v0, 0x7
int-to-byte v1, v1
and-int/lit8 v0, v0, 0x38
int-to-byte v0, v0
.line 2
invoke-direct {p0, v1}, Lcom/thoughtworks/xstream/io/binary/Token$Formatter;->contructToken(B)Lcom/thoughtworks/xstream/io/binary/Token;
move-result-object v1
.line 3
invoke-virtual {v1, p1, v0}, Lcom/thoughtworks/xstream/io/binary/Token;->readFrom(Ljava/io/DataInput;B)V
return-object v1
.end method
.method public write(Ljava/io/DataOutput;Lcom/thoughtworks/xstream/io/binary/Token;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p2}, Lcom/thoughtworks/xstream/io/binary/Token;->getId()J
move-result-wide v0
const-wide/16 v2, 0xff
cmp-long v2, v0, v2
if-gtz v2, :cond_0
const/16 v0, 0x8
goto :goto_0
:cond_0
const-wide/32 v2, 0xffff
cmp-long v2, v0, v2
if-gtz v2, :cond_1
const/16 v0, 0x10
goto :goto_0
:cond_1
const-wide v2, 0xffffffffL
cmp-long v0, v0, v2
if-gtz v0, :cond_2
const/16 v0, 0x18
goto :goto_0
:cond_2
const/16 v0, 0x20
.line 2
:goto_0
invoke-virtual {p2}, Lcom/thoughtworks/xstream/io/binary/Token;->getType()B
move-result v1
add-int/2addr v1, v0
invoke-interface {p1, v1}, Ljava/io/DataOutput;->write(I)V
.line 3
invoke-virtual {p2, p1, v0}, Lcom/thoughtworks/xstream/io/binary/Token;->writeTo(Ljava/io/DataOutput;B)V
return-void
.end method
@@ -0,0 +1,92 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;
.super Lcom/thoughtworks/xstream/io/binary/Token;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "MapIdToValue"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
.line 4
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
return-void
.end method
.method public constructor <init>(JLjava/lang/String;)V
.locals 1
const/4 v0, 0x2
.line 1
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
.line 2
iput-wide p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
.line 3
iput-object p3, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public readFrom(Ljava/io/DataInput;B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->readId(Ljava/io/DataInput;B)J
move-result-wide v0
iput-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
.line 2
invoke-virtual {p0, p1}, Lcom/thoughtworks/xstream/io/binary/Token;->readString(Ljava/io/DataInput;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
.method public writeTo(Ljava/io/DataOutput;B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
invoke-virtual {p0, p1, v0, v1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeId(Ljava/io/DataOutput;JB)V
.line 2
iget-object p2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeString(Ljava/io/DataOutput;Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,77 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$StartNode;
.super Lcom/thoughtworks/xstream/io/binary/Token;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "StartNode"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x3
.line 3
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
return-void
.end method
.method public constructor <init>(J)V
.locals 1
const/4 v0, 0x3
.line 1
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
.line 2
iput-wide p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
return-void
.end method
# virtual methods
.method public readFrom(Ljava/io/DataInput;B)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->readId(Ljava/io/DataInput;B)J
move-result-wide p1
iput-wide p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
return-void
.end method
.method public writeTo(Ljava/io/DataOutput;B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
invoke-virtual {p0, p1, v0, v1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeId(Ljava/io/DataOutput;JB)V
return-void
.end method
@@ -0,0 +1,77 @@
.class public Lcom/thoughtworks/xstream/io/binary/Token$Value;
.super Lcom/thoughtworks/xstream/io/binary/Token;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/thoughtworks/xstream/io/binary/Token;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Value"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x6
.line 3
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const/4 v0, 0x6
.line 1
invoke-direct {p0, v0}, Lcom/thoughtworks/xstream/io/binary/Token;-><init>(B)V
.line 2
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public readFrom(Ljava/io/DataInput;B)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/thoughtworks/xstream/io/binary/Token;->readString(Ljava/io/DataInput;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-void
.end method
.method public writeTo(Ljava/io/DataOutput;B)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object p2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lcom/thoughtworks/xstream/io/binary/Token;->writeString(Ljava/io/DataOutput;Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,590 @@
.class public abstract Lcom/thoughtworks/xstream/io/binary/Token;
.super Ljava/lang/Object;
.source "Token.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/thoughtworks/xstream/io/binary/Token$Value;,
Lcom/thoughtworks/xstream/io/binary/Token$Attribute;,
Lcom/thoughtworks/xstream/io/binary/Token$EndNode;,
Lcom/thoughtworks/xstream/io/binary/Token$StartNode;,
Lcom/thoughtworks/xstream/io/binary/Token$MapIdToValue;,
Lcom/thoughtworks/xstream/io/binary/Token$Formatter;
}
.end annotation
# static fields
.field private static final ID_EIGHT_BYTES:B = 0x20t
.field private static final ID_FOUR_BYTES:B = 0x18t
.field private static final ID_MASK:B = 0x38t
.field private static final ID_ONE_BYTE:B = 0x8t
.field private static final ID_SPLITTED:Ljava/lang/String; = "\u0000\u2021\u0000"
.field private static final ID_TWO_BYTES:B = 0x10t
.field private static final MAX_UTF8_LENGTH:I = 0xffff
.field public static final TYPE_ATTRIBUTE:B = 0x5t
.field public static final TYPE_END_NODE:B = 0x4t
.field public static final TYPE_MAP_ID_TO_VALUE:B = 0x2t
.field private static final TYPE_MASK:B = 0x7t
.field public static final TYPE_START_NODE:B = 0x3t
.field public static final TYPE_VALUE:B = 0x6t
.field public static final TYPE_VERSION:B = 0x1t
# instance fields
.field public id:J
.field private final type:B
.field public value:Ljava/lang/String;
# direct methods
.method public constructor <init>(B)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, -0x1
.line 2
iput-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
.line 3
iput-byte p1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->type:B
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_7
.line 1
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_1
goto :goto_2
.line 2
:cond_1
check-cast p1, Lcom/thoughtworks/xstream/io/binary/Token;
.line 3
iget-wide v2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
iget-wide v4, p1, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
cmp-long v2, v2, v4
if-eqz v2, :cond_2
return v1
.line 4
:cond_2
iget-byte v2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->type:B
iget-byte v3, p1, Lcom/thoughtworks/xstream/io/binary/Token;->type:B
if-eq v2, v3, :cond_3
return v1
.line 5
:cond_3
iget-object v2, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
iget-object p1, p1, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
if-eqz v2, :cond_4
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_6
goto :goto_0
:cond_4
if-nez p1, :cond_5
goto :goto_1
:cond_5
:goto_0
move v0, v1
:cond_6
:goto_1
return v0
:cond_7
:goto_2
return v1
.end method
.method public getId()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
return-wide v0
.end method
.method public getType()B
.locals 1
.line 1
iget-byte v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->type:B
return v0
.end method
.method public getValue()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
return-object v0
.end method
.method public hashCode()I
.locals 5
.line 1
iget-byte v0, p0, Lcom/thoughtworks/xstream/io/binary/Token;->type:B
mul-int/lit8 v0, v0, 0x1d
.line 2
iget-wide v1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
const/16 v3, 0x20
ushr-long v3, v1, v3
xor-long/2addr v1, v3
long-to-int v1, v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1d
.line 3
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
if-eqz v1, :cond_0
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
return v0
.end method
.method public abstract readFrom(Ljava/io/DataInput;B)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public readId(Ljava/io/DataInput;B)J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/16 v0, 0x8
if-eq p2, v0, :cond_3
const/16 v0, 0x10
if-eq p2, v0, :cond_2
const/16 v0, 0x18
if-eq p2, v0, :cond_1
const/16 v0, 0x20
if-ne p2, v0, :cond_0
.line 1
invoke-interface {p1}, Ljava/io/DataInput;->readLong()J
move-result-wide p1
const-wide/high16 v0, -0x8000000000000000L
sub-long/2addr p1, v0
return-wide p1
.line 2
:cond_0
new-instance p1, Ljava/lang/Error;
const-string v0, "Unknown idType "
invoke-static {v0, p2}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw p1
.line 3
:cond_1
invoke-interface {p1}, Ljava/io/DataInput;->readInt()I
move-result p1
const/high16 p2, -0x80000000
sub-int/2addr p1, p2
int-to-long p1, p1
return-wide p1
.line 4
:cond_2
invoke-interface {p1}, Ljava/io/DataInput;->readShort()S
move-result p1
const/16 p2, -0x8000
sub-int/2addr p1, p2
int-to-long p1, p1
return-wide p1
.line 5
:cond_3
invoke-interface {p1}, Ljava/io/DataInput;->readByte()B
move-result p1
add-int/lit16 p1, p1, 0x80
int-to-long p1, p1
return-wide p1
.end method
.method public readString(Ljava/io/DataInput;)Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
const-string v1, "\u0000\u2021\u0000"
.line 2
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
return-object v0
.line 3
:cond_0
invoke-interface {p1}, Ljava/io/DataInput;->readInt()I
move-result v0
.line 4
new-array v0, v0, [B
.line 5
invoke-interface {p1, v0}, Ljava/io/DataInput;->readFully([B)V
.line 6
new-instance p1, Ljava/lang/String;
const-string/jumbo v1, "utf-8"
invoke-direct {p1, v0, v1}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
return-object p1
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " [id="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->id:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, ", value=\'"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/thoughtworks/xstream/io/binary/Token;->value:Ljava/lang/String;
const-string v2, "\']"
invoke-static {v0, v1, v2}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeId(Ljava/io/DataOutput;JB)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-ltz v0, :cond_4
const/16 v0, 0x8
if-eq p4, v0, :cond_3
const/16 v0, 0x10
if-eq p4, v0, :cond_2
const/16 v0, 0x18
if-eq p4, v0, :cond_1
const/16 v0, 0x20
if-ne p4, v0, :cond_0
const-wide/high16 v0, -0x8000000000000000L
add-long/2addr p2, v0
.line 1
invoke-interface {p1, p2, p3}, Ljava/io/DataOutput;->writeLong(J)V
goto :goto_0
.line 2
:cond_0
new-instance p1, Ljava/lang/Error;
const-string p2, "Unknown idType "
invoke-static {p2, p4}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
long-to-int p2, p2
const/high16 p3, -0x80000000
add-int/2addr p2, p3
.line 3
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeInt(I)V
goto :goto_0
:cond_2
long-to-int p2, p2
int-to-short p2, p2
add-int/lit16 p2, p2, -0x8000
.line 4
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeShort(I)V
goto :goto_0
:cond_3
long-to-int p2, p2
int-to-byte p2, p2
add-int/lit8 p2, p2, -0x80
.line 5
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeByte(I)V
:goto_0
return-void
.line 6
:cond_4
new-instance p1, Ljava/io/IOException;
const-string p4, "id must not be negative "
invoke-static {p4, p2, p3}, Landroidx/camera/core/l1;->a(Ljava/lang/String;J)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeString(Ljava/io/DataOutput;Ljava/lang/String;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result v0
const/16 v1, 0x3fff
if-le v0, v1, :cond_0
const-string/jumbo v0, "utf-8"
invoke-virtual {p2, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
new-array v0, v0, [B
.line 2
:goto_0
array-length v1, v0
const v2, 0xffff
if-gt v1, v2, :cond_1
.line 3
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
goto :goto_1
:cond_1
const-string p2, "\u0000\u2021\u0000"
.line 4
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
.line 5
array-length p2, v0
invoke-interface {p1, p2}, Ljava/io/DataOutput;->writeInt(I)V
.line 6
invoke-interface {p1, v0}, Ljava/io/DataOutput;->write([B)V
:goto_1
return-void
.end method
.method public abstract writeTo(Ljava/io/DataOutput;B)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method