src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java
public void write( PrintWriter writer )
        throws IOException
    {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        super.write( byteArrayOutputStream );
        for ( byte b : byteArrayOutputStream.toByteArray() )
        {
            writer.write( (char) b );
        }
    }
public void write( PrintWriter writer )
        throws IOException
    {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        super.write( byteArrayOutputStream );
        for ( byte b : byteArrayOutputStream.toByteArray() )
        {
            writer.write( (char) b );
        }
    }
Write the manifest out to a print writer.

@param writer the Writer to which the manifest is written
@throws IOException if the manifest cannot be written