|
Eclipse JDT Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jdt.ui.jarpackager.JarWriter
Creates a JAR file for the given JAR package data. Clients may subclass.
Constructor Summary | |
JarWriter(JarPackageData jarPackage,
Shell parent)
Creates an instance which is used to create a JAR based on the given JarPackage. |
Method Summary | |
protected boolean | canCreateJar(Shell parent)
Checks if the JAR file can be overwritten. |
void | close()
Closes the archive and does all required cleanup. |
void | write(IFile resource,
IPath destinationPath)
Writes the passed resource to the current archive. |
protected void | write(IPath path,
byte[] contents,
long lastModified)
Creates a new JarEntry with the passed path and contents, and writes it to the current archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JarWriter(JarPackageData jarPackage, Shell parent) throws CoreException
Method Detail |
public void close() throws CoreException
public void write(IFile resource, IPath destinationPath) throws CoreException
protected void write(IPath path, byte[] contents, long lastModified) throws IOException
protected boolean canCreateJar(Shell parent)
|
Eclipse JDT Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |