148149150151152153154
public XMLEventWriter createXMLEventWriter(XMLStreamWriter sw) throws XMLStreamException { XMLStreamWriter2 sw2 = Stax2WriterAdapter.wrapIfNecessary(sw); return new Stax2EventWriterImpl(sw2); }
76777879808182
} public XMLEventWriter createXMLEventWriter(OutputStream out, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(out, null, enc, false)); }
82838485868788
} public XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(result)); }
88899091929394
} public XMLEventWriter createXMLEventWriter(Writer w) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, null, false)); }
141142143144145146147
// // // StAX2 additional (encoding-aware) factory methods public XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException { return new Stax2EventWriterImpl(createSW(null, w, enc, false)); }
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
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)); }