org.sourceforge.jemm.weaver.io
Interface ClassLoader
- All Known Implementing Classes:
- ClassPathLoader, FileLoader
public interface ClassLoader
The ClassLoader interface provides an abstraction over the sources of class files.
- Author:
- Paul Keeble
Method Summary |
byte[] |
readClass(java.lang.String className)
Finds a class in the Readers space and loads all the bytes of the file. |
readClass
byte[] readClass(java.lang.String className)
throws ClassNotFoundException,
java.io.IOException
- Finds a class in the Readers space and loads all the bytes of the file.
- Parameters:
className
- the fully qualified file name using /'s as
separators. eg com/package/Name.class
- Returns:
- The bytes representing the contents of the found file.
- Throws:
ClassNotFoundException
- If the given class can not be found.
java.io.IOException
- On IO Error whilst reading class.
Copyright © 2009. All Rights Reserved.