public abstract class FileModule extends Object implements Module, ModuleEntry
Constructor and Description |
---|
FileModule(File f,
Module container) |
Modifier and Type | Method and Description |
---|---|
Module |
asModule()
Precondition: isModuleFile().
|
boolean |
equals(Object o) |
String |
getAbsolutePath() |
Module |
getContainer()
the containing module
|
Iterator<ModuleEntry> |
getEntries() |
File |
getFile() |
InputStream |
getInputStream() |
String |
getName() |
int |
hashCode() |
boolean |
isModuleFile() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getClassName, isClassFile, isSourceFile
public FileModule(File f, Module container) throws IllegalArgumentException
IllegalArgumentException
public String getAbsolutePath()
public Iterator<ModuleEntry> getEntries()
getEntries
in interface Module
public String getName()
getName
in interface ModuleEntry
public InputStream getInputStream()
getInputStream
in interface ModuleEntry
public boolean isModuleFile()
isModuleFile
in interface ModuleEntry
public File getFile()
public Module asModule() throws UnimplementedError
ModuleEntry
asModule
in interface ModuleEntry
UnimplementedError
public Module getContainer()
ModuleEntry
getContainer
in interface ModuleEntry