OSDN Git Service

update javadoc comments
[stigmata/digger.git] / src / main / java / jp / sourceforge / stigmata / digger / ClassFileEntry.java
1 package jp.sourceforge.stigmata.digger;
2
3 /*
4  * $Id$
5  */
6
7 import java.io.IOException;
8 import java.io.InputStream;
9 import java.net.URL;
10
11 /**
12  * This class manages class name and its location.
13  *
14  * @author Haruaki TAMADA
15  * @version $Revision$ 
16  */
17 public class ClassFileEntry{
18     private URL location;
19     private String className;
20
21     public ClassFileEntry(String className, URL location){
22         this.className = className;
23         setLocation(location);
24     }
25
26     public String getClassName(){
27         return className;
28     }
29
30     public void setLocation(URL location){
31         this.location = location;
32     }
33
34     public URL getLocation(){
35         return location;
36     }
37
38     public InputStream openStream() throws IOException{
39         return getLocation().openStream();
40     }
41 }