Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package javassist;
 /*    */ 
 /*    */ import java.io.InputStream;
 /*    */ import java.net.URL;
 /*    */ 
 /*    */ public class ClassClassPath
 /*    */   implements ClassPath
 /*    */ {
 /*    */   private Class thisClass;
/*    */ 
/*    */   public ClassClassPath(Class c)
/*    */   {
/* 54 */     this. = c;
/*    */   }
/*    */ 
/*    */   ClassClassPath()
/*    */   {
/* 66 */     this(Object.class);
/*    */   }
/*    */ 
/*    */   public InputStream openClassfile(String classname)
/*    */   {
/* 73 */     String jarname = "/" + classname.replace('.''/') + ".class";
/* 74 */     return this..getResourceAsStream(jarname);
/*    */   }
/*    */ 
/*    */   public URL find(String classname)
/*    */   {
/* 83 */     String jarname = "/" + classname.replace('.''/') + ".class";
/* 84 */     return this..getResource(jarname);
/*    */   }
/*    */ 
/*    */   public void close()
/*    */   {
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 94 */     return this..getName() + ".class";
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     javassist.ClassClassPath
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X