public void write(char[] cbuf, int off, int len) throws IOException { try { writer.writeCharacters(cbuf, off, len); } catch (XMLStreamException ex) { throw new XMLStreamIOException(ex); } }
/** * Get the wrapped {@link XMLStreamException}. * * @return the wrapped exception */ public XMLStreamException getXMLStreamException() { return (XMLStreamException)getCause(); } }
/** * Constructor. * * @param cause the {@link XMLStreamException} to wrap */ public XMLStreamIOException(XMLStreamException cause) { initCause(cause); }
out.close(); } catch (XMLStreamIOException ex) { throw ex.getXMLStreamException();
public void write(String str) throws IOException { try { writer.writeCharacters(str); } catch (XMLStreamException ex) { throw new XMLStreamIOException(ex); } }