Constructor and Description |
---|
JarFileArchive(JarFile jarFile) |
JarFileArchive(JarFile jarFile,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
Iterator<String> |
getEntries()
Returns an
Iterator of the file entries. |
InputStream |
getEntry(String entryPath)
Returns the InputStream for the given entry name.
|
URL |
getEntryAsURL(String entryPath)
Returns the URL for the given entry name.
|
URL |
getRootURL() |
public JarFileArchive(JarFile jarFile) throws MalformedURLException
MalformedURLException
public JarFileArchive(JarFile jarFile, Logger logger) throws MalformedURLException
MalformedURLException
public Iterator<String> getEntries()
Archive
Iterator
of the file entries. Each String represents
a file name relative to the root of the module.getEntries
in interface Archive
public InputStream getEntry(String entryPath) throws IOException
Archive
getEntry
in interface Archive
entryPath
- the file name relative to the root of the module.IOException
public URL getEntryAsURL(String entryPath) throws IOException
Archive
getEntryAsURL
in interface Archive
entryPath
- the file name relative to the root of the module.IOException
public URL getRootURL()
getRootURL
in interface Archive
Copyright © 2021. All rights reserved.