code: public void write( PrintWriter writer )
          throws IOException
      {
          ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
          super.write( byteArrayOutputStream );
          for ( byte b : byteArrayOutputStream.toByteArray() )
          {
              writer.write( (char) b );
          }
      }
docs: 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