|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.depend.ClassFile
public class ClassFile
A ClassFile object stores information about a Java class. The class may be read from a DataInputStream.and written to a DataOutputStream. These are usually streams from a Java class file or a class file component of a Jar file.
Constructor Summary | |
---|---|
ClassFile()
|
Method Summary | |
---|---|
java.util.Vector |
getClassRefs()
Get the classes which this class references. |
java.lang.String |
getFullClassName()
Get the class' fully qualified name in dot format. |
void |
read(java.io.InputStream stream)
Read the class from a data stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassFile()
Method Detail |
---|
public void read(java.io.InputStream stream) throws java.io.IOException, java.lang.ClassFormatError
stream
- an InputStream from which the class will be read
java.io.IOException
- if there is a problem reading from the given
stream.
java.lang.ClassFormatError
- if the class cannot be parsed correctlypublic java.util.Vector getClassRefs()
public java.lang.String getFullClassName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |