Here you can find the source of writeCharacters(XMLStreamReader reader, XMLStreamWriter writer)
Parameter | Description |
---|---|
reader | a parameter |
writer | a parameter |
Parameter | Description |
---|---|
XMLStreamException | an exception |
private static void writeCharacters(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException
//package com.java2s; /******************************************************************************* * Copyright (c) 2009, 2016 GreenVulcano ESB Open Source Project. * All rights reserved.//w ww. j a v a 2 s .c o m * * This file is part of GreenVulcano ESB. * * GreenVulcano ESB is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * GreenVulcano ESB is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with GreenVulcano ESB. If not, see <http://www.gnu.org/licenses/>. *******************************************************************************/ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; public class Main { /** * @param reader * @param writer * @throws XMLStreamException */ private static void writeCharacters(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException { writer.writeCharacters(reader.getText()); } }