/** * Reset this object to write to the specified output. * * @param schemaLocation * if non-null, this value is printed on the root element as xsi:schemaLocation * @param noNsSchemaLocation * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation */ public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException { pushCoordinator(); nsContext.reset(); nse = nsContext.getCurrent(); if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage()) out = new MTOMXmlOutput(out); this.out = out; objectsWithId.clear(); idReferencedObjects.clear(); textHasAlreadyPrinted = false; seenRoot = false; this.schemaLocation = schemaLocation; this.noNsSchemaLocation = noNsSchemaLocation; this.fragment = fragment; this.inlineBinaryFlag = false; this.expectedMimeType = null; cycleDetectionStack.reset(); out.startDocument(this,fragment,knownUri2prefixIndexMap,nsContext); }
/** * Reset this object to write to the specified output. * * @param schemaLocation * if non-null, this value is printed on the root element as xsi:schemaLocation * @param noNsSchemaLocation * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation */ public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException { pushCoordinator(); nsContext.reset(); nse = nsContext.getCurrent(); if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage()) out = new MTOMXmlOutput(out); this.out = out; objectsWithId.clear(); idReferencedObjects.clear(); textHasAlreadyPrinted = false; seenRoot = false; this.schemaLocation = schemaLocation; this.noNsSchemaLocation = noNsSchemaLocation; this.fragment = fragment; this.inlineBinaryFlag = false; this.expectedMimeType = null; cycleDetectionStack.reset(); out.startDocument(this,fragment,knownUri2prefixIndexMap,nsContext); }
/** * Reset this object to write to the specified output. * * @param schemaLocation * if non-null, this value is printed on the root element as xsi:schemaLocation * @param noNsSchemaLocation * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation */ public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException { pushCoordinator(); nsContext.reset(); nse = nsContext.getCurrent(); if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage()) out = new MTOMXmlOutput(out); this.out = out; objectsWithId.clear(); idReferencedObjects.clear(); textHasAlreadyPrinted = false; seenRoot = false; this.schemaLocation = schemaLocation; this.noNsSchemaLocation = noNsSchemaLocation; this.fragment = fragment; this.inlineBinaryFlag = false; this.expectedMimeType = null; cycleDetectionStack.reset(); out.startDocument(this,fragment,knownUri2prefixIndexMap,nsContext); }
/** * Reset this object to write to the specified output. * * @param schemaLocation * if non-null, this value is printed on the root element as xsi:schemaLocation * @param noNsSchemaLocation * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation */ public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException { pushCoordinator(); nsContext.reset(); nse = nsContext.getCurrent(); if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage()) out = new MTOMXmlOutput(out); this.out = out; objectsWithId.clear(); idReferencedObjects.clear(); textHasAlreadyPrinted = false; seenRoot = false; this.schemaLocation = schemaLocation; this.noNsSchemaLocation = noNsSchemaLocation; this.fragment = fragment; this.inlineBinaryFlag = false; this.expectedMimeType = null; cycleDetectionStack.reset(); out.startDocument(this,fragment,knownUri2prefixIndexMap,nsContext); }