protected void write(Attributes attributes, DataOutputStream os) throws IOException { Iterator it = attributes.entrySet().iterator(); while (it.hasNext()) { Map.Entry e = (Map.Entry) it.next(); StringBuffer buffer = new StringBuffer(((Attributes.Name) e.getKey()).toString()); buffer.append(": "); //$NON-NLS-1$ buffer.append(toUtf8((String) e.getValue())); buffer.append("\r\n"); //$NON-NLS-1$ localMake72Safe(buffer); os.writeBytes(buffer.toString()); } os.writeBytes("\r\n"); //$NON-NLS-1$ }
protected void writeMainSplittingClasspath(Attributes attributes, DataOutputStream out) throws IOException { String version = toUtf8(attributes.getValue(vername)); if (version == null) { vername = Attributes.Name.SIGNATURE_VERSION.toString(); version = toUtf8(attributes.getValue(vername)); if ((version != null) && !(name.equalsIgnoreCase(vername))) { if (name.equalsIgnoreCase(Attributes.Name.CLASS_PATH.toString())) { writeSplit(out, name, toUtf8((String) e.getValue())); continue; buffer.append(toUtf8((String) e.getValue())); buffer.append("\r\n"); //$NON-NLS-1$ localMake72Safe(buffer);