Package com.yworks.util.abstractjar
Interface Archive
-
- All Known Implementing Classes:
DirectoryWrapper,JarFileWrapper
public interface ArchiveDescribes an abstract "archive". This is usually a JAR archive. However in Java terms using a directory to execute code (.class files) is perfectly fine. Thus AbstractArchive provides an abstraction layer to account for both JAR files and directories (and potentially more).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close.java.util.Enumeration<Entry>getEntries()Gets entries.java.io.InputStreamgetInputStream(Entry entry)Gets input stream.java.util.jar.ManifestgetManifest()Gets manifest.java.lang.StringgetName()Gets name.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets name.- Returns:
- the name
-
getEntries
java.util.Enumeration<Entry> getEntries()
Gets entries.- Returns:
- the entries
-
getManifest
java.util.jar.Manifest getManifest() throws java.io.IOExceptionGets manifest.- Returns:
- the manifest
- Throws:
java.io.IOException- the io exception
-
getInputStream
java.io.InputStream getInputStream(Entry entry) throws java.io.IOException
Gets input stream.- Parameters:
entry- the entry- Returns:
- the input stream
- Throws:
java.io.IOException- the io exception
-
close
void close() throws java.io.IOExceptionClose.- Throws:
java.io.IOException- the io exception
-
-