public StaxWriter(final QNameMap qnameMap,final XMLStreamWriter out,final boolean writeEnclosingDocument,final boolean namespaceRepairingMode,final NameCoder nameCoder) throws XMLStreamException {
  super(nameCoder);
  this.qnameMap=qnameMap;
  this.out=out;
  this.writeEnclosingDocument=writeEnclosingDocument;
  this.namespaceRepairingMode=namespaceRepairingMode;
  if (writeEnclosingDocument) {
    out.writeStartDocument();
  }
}

public StaxWriter ( final QNameMap qnameMap , final XMLStreamWriter out , final boolean writeEnclosingDocument , final boolean namespaceRepairingMode , final NameCoder nameCoder ) throws XMLStreamException { super ( nameCoder ) ; this . qnameMap = qnameMap ; this . out = out ; this . writeEnclosingDocument = writeEnclosingDocument ; this . namespaceRepairingMode = namespaceRepairingMode ; if ( writeEnclosingDocument ) { out . writeStartDocument ( ) ; } }
allows a staxwriter to be created for partial xml output
