code: public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException {
          copy(reader, writer, false, false);
      }
docs: Copies the reader to the writer. The start and end document methods must
  be handled on the writer manually.
  
  @param reader
  @param writer
  @throws XMLStreamException