Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.runtime;
 /*    */ 
 /*    */ import javax.xml.namespace.NamespaceContext;
 /*    */ import javax.xml.stream.XMLEventWriter;
 /*    */ import javax.xml.stream.XMLStreamWriter;
 /*    */ 
 /*    */ final class StAXPostInitAction
 /*    */   implements Runnable
 /*    */ {
/*    */   private final XMLStreamWriter xsw;
/*    */   private final XMLEventWriter xew;
/*    */   private final NamespaceContext nsc;
/*    */   private final XMLSerializer serializer;
/*    */ 
/*    */   StAXPostInitAction(XMLStreamWriter xswXMLSerializer serializer)
/*    */   {
/* 61 */     this.xsw = xsw;
/* 62 */     this.xew = null;
/* 63 */     this.nsc = null;
/* 64 */     this.serializer = serializer;
/*    */   }
/*    */ 
/*    */   StAXPostInitAction(XMLEventWriter xewXMLSerializer serializer) {
/* 68 */     this.xsw = null;
/* 69 */     this.xew = xew;
/* 70 */     this.nsc = null;
/* 71 */     this.serializer = serializer;
/*    */   }
/*    */ 
/*    */   StAXPostInitAction(NamespaceContext nscXMLSerializer serializer) {
/* 75 */     this.xsw = null;
/* 76 */     this.xew = null;
/* 77 */     this.nsc = nsc;
/* 78 */     this.serializer = serializer;
/*    */   }
/*    */ 
/*    */   public void run() {
/* 82 */     NamespaceContext ns = this.nsc;
/* 83 */     if (this.xsw != null) ns = this.xsw.getNamespaceContext();
/* 84 */     if (this.xew != null) ns = this.xew.getNamespaceContext();
/*    */ 
/* 88 */     if (ns == null) {
/* 89 */       return;
/*    */     }
/*    */ 
/* 94 */     for (String nsUri : this.serializer.grammar.nameList.namespaceURIs) {
/* 95 */       String p = ns.getPrefix(nsUri);
/* 96 */       if (p != null)
/* 97 */         this.serializer.addInscopeBinding(nsUri, p);
/*    */     }
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     com.sun.xml.bind.v2.runtime.StAXPostInitAction
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X