1 /* |
1 /* |
2 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.xml.internal.stream.writers; |
26 package com.sun.xml.internal.stream.writers; |
27 |
27 |
|
28 import com.sun.org.apache.xerces.internal.impl.Constants; |
|
29 import com.sun.org.apache.xerces.internal.impl.PropertyManager; |
|
30 import com.sun.org.apache.xerces.internal.util.NamespaceSupport; |
|
31 import com.sun.org.apache.xerces.internal.util.SymbolTable; |
|
32 import com.sun.org.apache.xerces.internal.xni.QName; |
|
33 import com.sun.xml.internal.stream.util.ReadOnlyIterator; |
28 import java.io.FileOutputStream; |
34 import java.io.FileOutputStream; |
29 import java.io.IOException; |
35 import java.io.IOException; |
30 import java.io.OutputStream; |
36 import java.io.OutputStream; |
31 import java.io.OutputStreamWriter; |
37 import java.io.OutputStreamWriter; |
32 import java.io.Writer; |
38 import java.io.Writer; |
33 import java.nio.charset.Charset; |
39 import java.nio.charset.Charset; |
34 import java.nio.charset.CharsetEncoder; |
40 import java.nio.charset.CharsetEncoder; |
35 import java.util.AbstractMap; |
41 import java.util.AbstractMap; |
36 import java.util.ArrayList; |
42 import java.util.ArrayList; |
37 import java.util.HashMap; |
43 import java.util.HashMap; |
|
44 import java.util.Iterator; |
38 import java.util.Random; |
45 import java.util.Random; |
|
46 import java.util.Set; |
39 import java.util.Vector; |
47 import java.util.Vector; |
40 import java.util.Set; |
|
41 import java.util.Iterator; |
|
42 |
|
43 import javax.xml.XMLConstants; |
48 import javax.xml.XMLConstants; |
44 import javax.xml.namespace.NamespaceContext; |
49 import javax.xml.namespace.NamespaceContext; |
45 import javax.xml.stream.XMLOutputFactory; |
50 import javax.xml.stream.XMLOutputFactory; |
46 import javax.xml.stream.XMLStreamConstants; |
51 import javax.xml.stream.XMLStreamConstants; |
47 import javax.xml.stream.XMLStreamException; |
52 import javax.xml.stream.XMLStreamException; |
48 import javax.xml.transform.stream.StreamResult; |
53 import javax.xml.transform.stream.StreamResult; |
49 |
54 import jdk.xml.internal.SecuritySupport; |
50 import com.sun.org.apache.xerces.internal.impl.Constants; |
|
51 import com.sun.org.apache.xerces.internal.impl.PropertyManager; |
|
52 import com.sun.org.apache.xerces.internal.util.NamespaceSupport; |
|
53 import com.sun.org.apache.xerces.internal.util.SymbolTable; |
|
54 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
|
55 import com.sun.org.apache.xerces.internal.xni.QName; |
|
56 |
|
57 import com.sun.xml.internal.stream.util.ReadOnlyIterator; |
|
58 |
55 |
59 /** |
56 /** |
60 * This class implements a StAX XMLStreamWriter. It extends |
57 * This class implements a StAX XMLStreamWriter. It extends |
61 * <code>AbstractMap</code> in order to support a getter for |
58 * <code>AbstractMap</code> in order to support a getter for |
62 * implementation-specific properties. For example, you can get |
59 * implementation-specific properties. For example, you can get |