/** * 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(); }