Java XMLStreamReader writeCharacters(XMLStreamReader reader, XMLStreamWriter writer)

Here you can find the source of writeCharacters(XMLStreamReader reader, XMLStreamWriter writer)

Description

write Characters

License

Open Source License

Parameter

Parameter Description
reader a parameter
writer a parameter

Exception

Parameter Description
XMLStreamException an exception

Declaration

private static void writeCharacters(XMLStreamReader reader,
        XMLStreamWriter writer) throws XMLStreamException 

Method Source Code

//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());
    }
}

Related

  1. skip(XMLStreamReader parser)
  2. skipEventsTo(int targetEvent, XMLStreamReader parser)
  3. skipNewLines(XMLStreamReader xmlStreamReader)
  4. toReadableEvent(XMLStreamReader r)
  5. write(XMLStreamReader xmlr, XMLStreamWriter writer)