public class com.sun.xml.internal.stream.writers.XMLEventWriterImpl implements javax.xml.stream.XMLEventWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.stream.writers.XMLEventWriterImpl
super_class: java.lang.Object
{
private final javax.xml.stream.XMLStreamWriter fStreamWriter;
descriptor: Ljavax/xml/stream/XMLStreamWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public void <init>(javax.xml.stream.XMLStreamWriter);
descriptor: (Ljavax/xml/stream/XMLStreamWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 3 1 streamWriter Ljavax/xml/stream/XMLStreamWriter;
MethodParameters:
Name Flags
streamWriter
public void add(javax.xml.stream.XMLEventReader);
descriptor: (Ljavax/xml/stream/XMLEventReader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: new javax.xml.stream.XMLStreamException
dup
ldc "Event reader shouldn't be null"
invokespecial javax.xml.stream.XMLStreamException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface javax.xml.stream.XMLEventReader.nextEvent:()Ljavax/xml/stream/events/XMLEvent;
invokevirtual com.sun.xml.internal.stream.writers.XMLEventWriterImpl.add:(Ljavax/xml/stream/events/XMLEvent;)V
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface javax.xml.stream.XMLEventReader.hasNext:()Z
ifne 2
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 5 1 xMLEventReader Ljavax/xml/stream/XMLEventReader;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
xMLEventReader
public void add(javax.xml.stream.events.XMLEvent);
descriptor: (Ljavax/xml/stream/events/XMLEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface javax.xml.stream.events.XMLEvent.getEventType:()I
istore 2
start local 2 1: iload 2
tableswitch { // 1 - 13
1: 22
2: 71
3: 47
4: 52
5: 44
6: 74
7: 5
8: 73
9: 58
10: 61
11: 2
12: 67
13: 41
default: 74
}
2: StackMap locals: int
StackMap stack:
aload 1
checkcast javax.xml.stream.events.DTD
astore 3
start local 3 3: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.DTD.getDocumentTypeDeclaration:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeDTD:(Ljava/lang/String;)V
4: goto 74
end local 3 5: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.StartDocument
astore 3
start local 3 6: ldc Lcom/sun/xml/internal/stream/writers/XMLStreamWriterBase;
aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
7: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
checkcast com.sun.xml.internal.stream.writers.XMLStreamWriterBase
8: aload 3
invokeinterface javax.xml.stream.events.StartDocument.getCharacterEncodingScheme:()Ljava/lang/String;
9: aload 3
invokeinterface javax.xml.stream.events.StartDocument.getVersion:()Ljava/lang/String;
10: aload 3
invokeinterface javax.xml.stream.events.StartDocument.isStandalone:()Z
11: aload 3
invokeinterface javax.xml.stream.events.StartDocument.standaloneSet:()Z
12: invokeinterface com.sun.xml.internal.stream.writers.XMLStreamWriterBase.writeStartDocument:(Ljava/lang/String;Ljava/lang/String;ZZ)V
13: goto 74
14: StackMap locals: javax.xml.stream.events.StartDocument
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
15: aload 3
invokeinterface javax.xml.stream.events.StartDocument.getCharacterEncodingScheme:()Ljava/lang/String;
16: aload 3
invokeinterface javax.xml.stream.events.StartDocument.getVersion:()Ljava/lang/String;
17: invokeinterface javax.xml.stream.XMLStreamWriter.writeStartDocument:(Ljava/lang/String;Ljava/lang/String;)V
18: goto 74
StackMap locals:
StackMap stack: javax.xml.stream.XMLStreamException
19: pop
20: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.StartDocument.getVersion:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeStartDocument:(Ljava/lang/String;)V
21: goto 74
end local 3 22: StackMap locals:
StackMap stack:
aload 1
invokeinterface javax.xml.stream.events.XMLEvent.asStartElement:()Ljavax/xml/stream/events/StartElement;
astore 3
start local 3 23: aload 3
invokeinterface javax.xml.stream.events.StartElement.getName:()Ljavax/xml/namespace/QName;
astore 4
start local 4 24: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 4
invokevirtual javax.xml.namespace.QName.getPrefix:()Ljava/lang/String;
aload 4
invokevirtual javax.xml.namespace.QName.getLocalPart:()Ljava/lang/String;
25: aload 4
invokevirtual javax.xml.namespace.QName.getNamespaceURI:()Ljava/lang/String;
26: invokeinterface javax.xml.stream.XMLStreamWriter.writeStartElement:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
27: aload 3
invokeinterface javax.xml.stream.events.StartElement.getNamespaces:()Ljava/util/Iterator;
astore 5
start local 5 28: goto 31
29: StackMap locals: javax.xml.stream.events.StartElement javax.xml.namespace.QName java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 6
start local 6 30: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 6
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
aload 6
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeNamespace:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 31: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
32: aload 3
invokeinterface javax.xml.stream.events.StartElement.getAttributes:()Ljava/util/Iterator;
astore 6
start local 6 33: goto 39
34: StackMap locals: java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.xml.stream.events.Attribute
astore 7
start local 7 35: aload 7
invokeinterface javax.xml.stream.events.Attribute.getName:()Ljavax/xml/namespace/QName;
astore 8
start local 8 36: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 8
invokevirtual javax.xml.namespace.QName.getPrefix:()Ljava/lang/String;
aload 8
invokevirtual javax.xml.namespace.QName.getNamespaceURI:()Ljava/lang/String;
37: aload 8
invokevirtual javax.xml.namespace.QName.getLocalPart:()Ljava/lang/String;
aload 7
invokeinterface javax.xml.stream.events.Attribute.getValue:()Ljava/lang/String;
38: invokeinterface javax.xml.stream.XMLStreamWriter.writeAttribute:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
end local 8 end local 7 39: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 34
40: goto 74
end local 6 end local 5 end local 4 end local 3 41: StackMap locals: com.sun.xml.internal.stream.writers.XMLEventWriterImpl javax.xml.stream.events.XMLEvent int
StackMap stack:
aload 1
checkcast javax.xml.stream.events.Namespace
astore 3
start local 3 42: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
aload 3
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeNamespace:(Ljava/lang/String;Ljava/lang/String;)V
43: goto 74
end local 3 44: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.Comment
astore 3
start local 3 45: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.Comment.getText:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeComment:(Ljava/lang/String;)V
46: goto 74
end local 3 47: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.ProcessingInstruction
astore 3
start local 3 48: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.ProcessingInstruction.getTarget:()Ljava/lang/String;
49: aload 3
invokeinterface javax.xml.stream.events.ProcessingInstruction.getData:()Ljava/lang/String;
50: invokeinterface javax.xml.stream.XMLStreamWriter.writeProcessingInstruction:(Ljava/lang/String;Ljava/lang/String;)V
51: goto 74
end local 3 52: StackMap locals:
StackMap stack:
aload 1
invokeinterface javax.xml.stream.events.XMLEvent.asCharacters:()Ljavax/xml/stream/events/Characters;
astore 3
start local 3 53: aload 3
invokeinterface javax.xml.stream.events.Characters.isCData:()Z
ifeq 56
54: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.Characters.getData:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeCData:(Ljava/lang/String;)V
55: goto 74
56: StackMap locals: javax.xml.stream.events.Characters
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.Characters.getData:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeCharacters:(Ljava/lang/String;)V
57: goto 74
end local 3 58: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.EntityReference
astore 3
start local 3 59: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.EntityReference.getName:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeEntityRef:(Ljava/lang/String;)V
60: goto 74
end local 3 61: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.Attribute
astore 3
start local 3 62: aload 3
invokeinterface javax.xml.stream.events.Attribute.getName:()Ljavax/xml/namespace/QName;
astore 4
start local 4 63: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 4
invokevirtual javax.xml.namespace.QName.getPrefix:()Ljava/lang/String;
aload 4
invokevirtual javax.xml.namespace.QName.getNamespaceURI:()Ljava/lang/String;
64: aload 4
invokevirtual javax.xml.namespace.QName.getLocalPart:()Ljava/lang/String;
aload 3
invokeinterface javax.xml.stream.events.Attribute.getValue:()Ljava/lang/String;
65: invokeinterface javax.xml.stream.XMLStreamWriter.writeAttribute:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
66: goto 74
end local 4 end local 3 67: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.stream.events.Characters
astore 3
start local 3 68: aload 3
invokeinterface javax.xml.stream.events.Characters.isCData:()Z
ifeq 74
69: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 3
invokeinterface javax.xml.stream.events.Characters.getData:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeCData:(Ljava/lang/String;)V
70: goto 74
end local 3 71: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokeinterface javax.xml.stream.XMLStreamWriter.writeEndElement:()V
72: goto 74
73: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokeinterface javax.xml.stream.XMLStreamWriter.writeEndDocument:()V
74: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 75 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 75 1 xMLEvent Ljavax/xml/stream/events/XMLEvent;
1 75 2 type I
3 5 3 dtd Ljavax/xml/stream/events/DTD;
6 22 3 startDocument Ljavax/xml/stream/events/StartDocument;
23 41 3 startElement Ljavax/xml/stream/events/StartElement;
24 41 4 qname Ljavax/xml/namespace/QName;
28 41 5 iterator Ljava/util/Iterator<+Ljavax/xml/stream/events/Namespace;>;
30 31 6 namespace Ljavax/xml/stream/events/Namespace;
33 41 6 attributes Ljava/util/Iterator<+Ljavax/xml/stream/events/Attribute;>;
35 39 7 attribute Ljavax/xml/stream/events/Attribute;
36 39 8 aqname Ljavax/xml/namespace/QName;
42 44 3 namespace Ljavax/xml/stream/events/Namespace;
45 47 3 comment Ljavax/xml/stream/events/Comment;
48 52 3 processingInstruction Ljavax/xml/stream/events/ProcessingInstruction;
53 58 3 characters Ljavax/xml/stream/events/Characters;
59 61 3 entityReference Ljavax/xml/stream/events/EntityReference;
62 67 3 attribute Ljavax/xml/stream/events/Attribute;
63 67 4 qname Ljavax/xml/namespace/QName;
68 71 3 characters Ljavax/xml/stream/events/Characters;
Exception table:
from to target type
6 18 19 Class javax.xml.stream.XMLStreamException
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
xMLEvent
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokeinterface javax.xml.stream.XMLStreamWriter.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
Exceptions:
throws javax.xml.stream.XMLStreamException
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokeinterface javax.xml.stream.XMLStreamWriter.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
Exceptions:
throws javax.xml.stream.XMLStreamException
public javax.xml.namespace.NamespaceContext getNamespaceContext();
descriptor: ()Ljavax/xml/namespace/NamespaceContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
invokeinterface javax.xml.stream.XMLStreamWriter.getNamespaceContext:()Ljavax/xml/namespace/NamespaceContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
public java.lang.String getPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 1
invokeinterface javax.xml.stream.XMLStreamWriter.getPrefix:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 1 1 namespaceURI Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
namespaceURI
public void setDefaultNamespace(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 1
invokeinterface javax.xml.stream.XMLStreamWriter.setDefaultNamespace:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 2 1 uri Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
uri
public void setNamespaceContext(javax.xml.namespace.NamespaceContext);
descriptor: (Ljavax/xml/namespace/NamespaceContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 1
invokeinterface javax.xml.stream.XMLStreamWriter.setNamespaceContext:(Ljavax/xml/namespace/NamespaceContext;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 2 1 namespaceContext Ljavax/xml/namespace/NamespaceContext;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
namespaceContext
public void setPrefix(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLEventWriterImpl.fStreamWriter:Ljavax/xml/stream/XMLStreamWriter;
aload 1
aload 2
invokeinterface javax.xml.stream.XMLStreamWriter.setPrefix:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLEventWriterImpl;
0 2 1 prefix Ljava/lang/String;
0 2 2 uri Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
prefix
uri
}
SourceFile: "XMLEventWriterImpl.java"