|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClassLoaderWriter
The class loader writer allows to modify the resources loaded by a
DynamicClassLoaderProvider. For example a class loader writer
could write generated class files into the repository or the temporary
file system.
| Method Summary | |
|---|---|
boolean |
delete(java.lang.String path)
Delete the class/resource |
java.io.InputStream |
getInputStream(java.lang.String path)
Get the input stream for a class or resource handled by the underlying class loader. |
long |
getLastModified(java.lang.String path)
Return the last modified for the class or resource. |
java.io.OutputStream |
getOutputStream(java.lang.String path)
Get the output stream for a class or resource handled by the underlying class loader. |
boolean |
rename(java.lang.String oldPath,
java.lang.String newPath)
Rename a class/resource. |
| Method Detail |
|---|
java.io.OutputStream getOutputStream(java.lang.String path)
path - The path of the class/resource.
java.io.InputStream getInputStream(java.lang.String path)
throws java.io.IOException
path - The path of the class/resource.
java.io.IOException - If the resource/class does not exist.long getLastModified(java.lang.String path)
path - The path of the class/resource.
-1 if
the information can't be detected.boolean delete(java.lang.String path)
path - The path of the class/resource.
true if the resource exists and could be deleted,
false otherwise.
boolean rename(java.lang.String oldPath,
java.lang.String newPath)
oldPath - The path of the class/resource.newPath - The new path.
true if the renaming has been successful.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||