PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while writing manifest"); }
BufferedOutputStream bos = out instanceof BufferedOutputStream ? (BufferedOutputStream) out : new BufferedOutputStream(out, 4096); write_main_section(getMainAttributes(), bos); bos.write(CRLF); write_individual_sections(getEntries(), bos); bos.flush();
  public void write(OutputStream out) throws IOException  {    PrintWriter pw =      new PrintWriter(new		      BufferedWriter(new OutputStreamWriter(out, "8859_1")));		write_main_section(getMainAttributes(), pw);		pw.println();		write_individual_sections(getEntries(), pw);    if (pw.checkError())      {			throw new JarException("Error while writing manifest");		}	}