jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/C14nXmlOutput.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, 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 |
36 import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler; |
36 import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler; |
37 |
37 |
38 /** |
38 /** |
39 * {@link XmlOutput} that generates canonical XML. |
39 * {@link XmlOutput} that generates canonical XML. |
40 * |
40 * |
41 * @see com.sun.xml.internal.bind.api.C14nSupport_ArchitectureDocument |
|
42 * @author Kohsuke Kawaguchi |
41 * @author Kohsuke Kawaguchi |
43 */ |
42 */ |
44 public class C14nXmlOutput extends UTF8XmlOutput { |
43 public class C14nXmlOutput extends UTF8XmlOutput { |
45 public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) { |
44 public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) { |
46 super(out, localNames, escapeHandler); |
45 super(out, localNames, escapeHandler); |
66 /** |
65 /** |
67 * Hosts other attributes whose name are not statically known |
66 * Hosts other attributes whose name are not statically known |
68 * (AKA attribute wildcard.) |
67 * (AKA attribute wildcard.) |
69 * |
68 * |
70 * As long as this map is empty, there's no need for sorting. |
69 * As long as this map is empty, there's no need for sorting. |
71 * see {@link com.sun.xml.internal.bind.api.C14nSupport_ArchitectureDocument} for more details. |
|
72 */ |
70 */ |
73 private final FinalArrayList<DynamicAttribute> otherAttributes = new FinalArrayList<DynamicAttribute>(); |
71 private final FinalArrayList<DynamicAttribute> otherAttributes = new FinalArrayList<DynamicAttribute>(); |
74 |
72 |
75 /** |
73 /** |
76 * True if {@link JAXBRIContext} is created with c14n support on, |
74 * True if {@link JAXBRIContext} is created with c14n support on, |