1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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.bind.v2.runtime.output; |
26 package com.sun.xml.internal.bind.v2.runtime.output; |
27 |
27 |
|
28 import com.sun.xml.internal.bind.marshaller.NoEscapeHandler; |
28 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl; |
29 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl; |
29 import com.sun.xml.internal.bind.v2.runtime.Name; |
30 import com.sun.xml.internal.bind.v2.runtime.Name; |
30 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer; |
31 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer; |
31 import javax.xml.stream.XMLStreamException; |
32 import javax.xml.stream.XMLStreamException; |
32 |
33 |
218 } |
219 } |
219 } |
220 } |
220 |
221 |
221 public FastInfosetStreamWriterOutput(StAXDocumentSerializer out, |
222 public FastInfosetStreamWriterOutput(StAXDocumentSerializer out, |
222 JAXBContextImpl context) { |
223 JAXBContextImpl context) { |
223 super(out); |
224 super(out, NoEscapeHandler.theInstance); |
224 |
225 |
225 this.fiout = out; |
226 this.fiout = out; |
226 this.localNames = context.getUTF8NameTable(); |
227 this.localNames = context.getUTF8NameTable(); |
227 |
228 |
228 final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData(); |
229 final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData(); |