public String getImplementationVersion() { return getMainAttributes().getValue(Attributes.Name.IMPLEMENTATION_VERSION); }
public String getManifestVersion() { return getMainAttributes().getValue(Attributes.Name.MANIFEST_VERSION); }
/** * @see com.ibm.etools.archive.ArchiveManifest */ public void setManifestVersion(java.lang.String version) { Attributes attributes = getMainAttributes(); attributes.putValue(Attributes.Name.MANIFEST_VERSION.toString(), version); }
public void setImplemenationVersion(String version) { Attributes attributes = getMainAttributes(); attributes.putValue(Attributes.Name.IMPLEMENTATION_VERSION.toString(), version); }
/** * @see com.ibm.etools.archive.ArchiveManifest */ public void setMainClass(java.lang.String className) { Attributes attributes = getMainAttributes(); if (className == null) attributes.remove(Attributes.Name.MAIN_CLASS); else attributes.putValue(Attributes.Name.MAIN_CLASS.toString(), className); }
/** * @see com.ibm.etools.archive.ArchiveManifest */ public void setClassPath(java.lang.String aSpaceDelimitedPath) { Attributes attributes = getMainAttributes(); if (aSpaceDelimitedPath == null) attributes.remove(Attributes.Name.CLASS_PATH); else attributes.putValue(Attributes.Name.CLASS_PATH.toString(), aSpaceDelimitedPath); }
/** * @see com.ibm.etools.archive.ArchiveManifest */ public java.lang.String getClassPath() { return ArchiveUtil.getValueIgnoreKeyCase(Attributes.Name.CLASS_PATH.toString(), getMainAttributes()); }
public String getMainClass() { return ArchiveUtil.getValueIgnoreKeyCase(Attributes.Name.MAIN_CLASS.toString(), getMainAttributes()); }
/** * Writes the Manifest to the specified OutputStream, splitting each classpath entry on a line * by itself. * * @param out * the output stream * @exception IOException * if an I/O error has occurred */ public void writeSplittingClasspath(OutputStream out) throws IOException { DataOutputStream dos = new DataOutputStream(out); // Write out the main attributes for the manifest writeMainSplittingClasspath(getMainAttributes(), dos); // Now write out the pre-entry attributes Iterator it = getEntries().entrySet().iterator(); while (it.hasNext()) { Map.Entry e = (Map.Entry) it.next(); StringBuffer buffer = new StringBuffer("Name: "); //$NON-NLS-1$ buffer.append((String) e.getKey()); buffer.append("\r\n"); //$NON-NLS-1$ localMake72Safe(buffer); dos.writeBytes(buffer.toString()); write((Attributes) e.getValue(), dos); } dos.flush(); }