/**
* Converts a PFM file into an AFM file.
* @param inp the PFM file
* @param outp the AFM file
* @throws IOException on error
*/
public static void Convert(RandomAccessFileOrArray inp, Stream outp)
{
Pfm2afm p = new Pfm2afm(inp, outp);
p.Openpfm();
p.Putheader();
p.Putchartab();
p.Putkerntab();
p.Puttrailer();
p.outp.Flush();
}