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, waitisClassFile, isSourceFilepublic AbstractURLModule(URL url)
public URL getURL()
public String getName()
getName in interface ModuleEntrypublic InputStream getInputStream()
getInputStream in interface ModuleEntrypublic boolean isModuleFile()
isModuleFile in interface ModuleEntrypublic Module asModule() throws UnimplementedError
ModuleEntryasModule in interface ModuleEntryUnimplementedErrorpublic String getClassName() throws UnsupportedOperationException
getClassName in interface ModuleEntryUnsupportedOperationException - if !isClassFile() and !isSourceFile()public Iterator<ModuleEntry> getEntries()
getEntries in interface Modulepublic Module getContainer()
ModuleEntrygetContainer in interface ModuleEntry