public abstract class AbstractJarEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected long |
time |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJarEntry(String name,
long time) |
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractJarEntry |
accept(JarEntryTransformer vistor)
Processes the jar entry with the given transformer.
|
abstract byte[] |
getContents()
Gets the contents of the jar entry.
|
abstract String |
getExtension()
Gets the extension of the jar entry.
|
String |
getName()
Gets the fully-qualified name of the jar entry.
|
String |
getPackage()
Gets the package that contains the jar entry, an empty
string if in the root package.
|
String |
getSimpleName()
Gets the simple name (without any packages or extension).
|
long |
getTime()
Gets the time the jar entry was last modified.
|
void |
write(JarOutputStream jos)
Writes the jar entry to the given
JarOutputStream. |
protected final String name
protected final long time
protected AbstractJarEntry(String name, long time)
public final String getName()
public final long getTime()
public final String getPackage()
public final String getSimpleName()
public abstract String getExtension()
public abstract byte[] getContents()
public final void write(JarOutputStream jos) throws IOException
JarOutputStream.jos - The jar output streamIOException - If an I/O exception occurspublic abstract AbstractJarEntry accept(JarEntryTransformer vistor)
vistor - The transformer