169170171172173174175
public XMLEventWriter createXMLEventWriter(XMLStreamWriter sw) throws XMLStreamException { XMLStreamWriter2 sw2 = Stax2WriterAdapter.wrapIfNecessary(sw); return new Stax2EventWriterImpl(sw2); }
151152153154155156157
@Override public XMLEventWriter createXMLEventWriter(XMLStreamWriter sw) throws XMLStreamException { XMLStreamWriter2 sw2 = Stax2WriterAdapter.wrapIfNecessary(sw); return new Stax2EventWriterImpl(sw2); }
77787980818283
} @Override public XMLEventWriter createXMLEventWriter(OutputStream out, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(out, null, enc, false)); }
83848586878889
} @Override public XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(result)); }
89909192939495
} @Override public XMLEventWriter createXMLEventWriter(Writer w) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, null, false)); }
143144145146147148149
@Override public XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, enc, false)); }
99100101102103104105
throws XMLStreamException { if (out == null) { throw new IllegalArgumentException("Null OutputStream is not a valid argument"); } return new Stax2EventWriterImpl(createSW(out, null, enc, false)); }
105106107108109110111
} public XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(result)); }
114115116117118119120
throws XMLStreamException { if (w == null) { throw new IllegalArgumentException("Null Writer is not a valid argument"); } return new Stax2EventWriterImpl(createSW(null, w, null, false)); }
172173174175176177178
// // // Stax2 additional (encoding-aware) factory methods public XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, enc, false)); }