public abstract class AbstractURLModule extends Object implements Module, ModuleEntry
Constructor and Description |
---|
AbstractURLModule(URL url) |
Modifier and Type | Method and Description |
---|---|
Module |
asModule()
Precondition: isModuleFile().
|
String |
getClassName() |
Module |
getContainer()
the containing module
|
Iterator<ModuleEntry> |
getEntries() |
InputStream |
getInputStream() |
String |
getName() |
URL |
getURL() |
boolean |
isModuleFile() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClassFile, isSourceFile
public AbstractURLModule(URL url)
public URL getURL()
public String getName()
getName
in interface ModuleEntry
public InputStream getInputStream()
getInputStream
in interface ModuleEntry
public boolean isModuleFile()
isModuleFile
in interface ModuleEntry
public Module asModule() throws UnimplementedError
ModuleEntry
asModule
in interface ModuleEntry
UnimplementedError
public String getClassName() throws UnsupportedOperationException
getClassName
in interface ModuleEntry
UnsupportedOperationException
- if !isClassFile() and !isSourceFile()public Iterator<ModuleEntry> getEntries()
getEntries
in interface Module
public Module getContainer()
ModuleEntry
getContainer
in interface ModuleEntry