Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.runtime;
 /*    */ 
 /*    */ import javax.activation.DataHandler;
 /*    */ 
/*    */ public final class SwaRefAdapter extends XmlAdapter<StringDataHandler>
/*    */ {
/*    */   public DataHandler unmarshal(String cid)
/*    */   {
/* 71 */     AttachmentUnmarshaller au = UnmarshallingContext.getInstance().parent.getAttachmentUnmarshaller();
/*    */ 
/* 73 */     return au.getAttachmentAsDataHandler(cid);
/*    */   }
/*    */ 
/*    */   public String marshal(DataHandler data) {
/* 77 */     if (data == nullreturn null;
/* 78 */     AttachmentMarshaller am = XMLSerializer.getInstance().attachmentMarshaller;
/*    */ 
/* 80 */     return am.addSwaRefAttachment(data);
/*    */   }
/*    */ }
/* 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.SwaRefAdapter
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X