|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jarpatch.JarContent
public class JarContent
maintain a view of a Jar content. Read a jar file, and compute a MD5 key for each file entry of the jar file
Constructor Summary | |
---|---|
JarContent(java.io.File jar)
build a new JarContent from the given jar file |
Method Summary | |
---|---|
java.util.List |
computeDeletedEntry(JarContent newJar)
|
java.util.jar.JarEntry[] |
computeNewerEntry(JarContent oldJar)
return all the JarEntry that have been modified from the old jar, or EMPTY_JARENTRY. |
java.io.File |
extractJarEntry(java.lang.String entry)
Extracts a jar or zip entry to a temp file which can be used for additional comparison |
int |
getNumberOfJarEntries()
Return the number of entries within a jar file |
void |
initializeContent()
initialize the JarContent from the jar |
void |
setExcludePattern(java.util.regex.Pattern[] excludes)
set the exclude pattern |
void |
writeEntry(java.util.jar.JarEntry jarEntry,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarContent(java.io.File jar) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void setExcludePattern(java.util.regex.Pattern[] excludes)
public void initializeContent() throws java.io.IOException
java.io.IOException
public java.io.File extractJarEntry(java.lang.String entry) throws java.io.IOException
entry
- the jar, zip, or war entry
java.io.IOException
- if an error occurs during the extractionpublic int getNumberOfJarEntries()
public java.util.jar.JarEntry[] computeNewerEntry(JarContent oldJar) throws java.io.IOException
java.io.IOException
public java.util.List computeDeletedEntry(JarContent newJar) throws java.io.IOException
java.io.IOException
public void writeEntry(java.util.jar.JarEntry jarEntry, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |