src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/XMLSerializer.java

changeset 397
b99d7e355d4b
parent 368
0989ad8c0860
child 637
9c07ef4934dd
equal deleted inserted replaced
393:6cdc6ed98780 397:b99d7e355d4b
810 * if non-null, this value is printed on the root element as xsi:schemaLocation 810 * if non-null, this value is printed on the root element as xsi:schemaLocation
811 * @param noNsSchemaLocation 811 * @param noNsSchemaLocation
812 * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation 812 * Similar to 'schemaLocation' but this one works for xsi:noNamespaceSchemaLocation
813 */ 813 */
814 public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException { 814 public void startDocument(XmlOutput out,boolean fragment,String schemaLocation,String noNsSchemaLocation) throws IOException, SAXException, XMLStreamException {
815 setThreadAffinity();
816 pushCoordinator(); 815 pushCoordinator();
817 nsContext.reset(); 816 nsContext.reset();
818 nse = nsContext.getCurrent(); 817 nse = nsContext.getCurrent();
819 if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage()) 818 if(attachmentMarshaller!=null && attachmentMarshaller.isXOPPackage())
820 out = new MTOMXmlOutput(out); 819 out = new MTOMXmlOutput(out);
839 838
840 public void close() { 839 public void close() {
841 out = null; 840 out = null;
842 clearCurrentProperty(); 841 clearCurrentProperty();
843 popCoordinator(); 842 popCoordinator();
844 resetThreadAffinity();
845 } 843 }
846 844
847 /** 845 /**
848 * This method can be called after {@link #startDocument} is called 846 * This method can be called after {@link #startDocument} is called
849 * but before the marshalling begins, to set the currently in-scope namespace 847 * but before the marshalling begins, to set the currently in-scope namespace

mercurial