Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aop.util;
 /*    */ 
 /*    */ import java.io.IOException;
 /*    */ import java.io.ObjectOutputStream;
 /*    */ import java.io.OutputStream;
 /*    */ import java.rmi.Remote;
 /*    */ import java.rmi.server.RemoteObject;
 /*    */ import java.rmi.server.RemoteStub;
 /*    */ 
/*    */ public class MarshalledValueOutputStream extends ObjectOutputStream
/*    */ {
/*    */   public MarshalledValueOutputStream(OutputStream os)
/*    */     throws IOException
/*    */   {
/* 50 */     super(os);
/* 51 */     enableReplaceObject(true);
/*    */   }
/*    */ 
/*    */   protected void annotateClass(Class cl)
/*    */     throws IOException
/*    */   {
/* 59 */     super.annotateClass(cl);
/*    */   }
/*    */ 
/*    */   protected void annotateProxyClass(Class cl)
/*    */     throws IOException
/*    */   {
/* 67 */     super.annotateProxyClass(cl);
/*    */   }
/*    */ 
/*    */   protected Object replaceObject(Object obj)
/*    */     throws IOException
/*    */   {
/* 75 */     if (((obj instanceof Remote)) && (!(obj instanceof RemoteStub)))
/*    */     {
/* 77 */       Remote remote = (Remote)obj;
/*    */       try
/*    */       {
/* 80 */         obj = RemoteObject.toStub(remote);
/*    */       }
/*    */       catch (IOException ignore)
/*    */       {
/*    */       }
/*    */     }
/*    */ 
/* 87 */     return obj;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.util.MarshalledValueOutputStream
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X