89909192939495
throws XMLStreamException { if (out == null) { throw new IllegalArgumentException("Null OutputStream is not a valid argument"); } return new Stax2EventWriterImpl(createSW(out, null, enc, false)); }
9596979899100101
} public XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(result)); }
104105106107108109110
throws XMLStreamException { if (w == null) { throw new IllegalArgumentException("Null Writer is not a valid argument"); } return new Stax2EventWriterImpl(createSW(null, w, null, false)); }
162163164165166167168
// // // Stax2 additional (encoding-aware) factory methods public XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, enc, false)); }
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)); }
} @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)); }