public static void transform(InputStream srcStream,OutputStream destStream,InputStream stylesheetStream,String outputFormat) throws FOPException {
  StreamSource src=new StreamSource(srcStream);
  StreamSource stylesheet=stylesheetStream == null ? null : new StreamSource(stylesheetStream);
  Fop fop=createFopInstance(destStream,outputFormat);
  transform(src,stylesheet,fop);
}

public static void transform ( InputStream srcStream , OutputStream destStream , InputStream stylesheetStream , String outputFormat ) throws FOPException { StreamSource src = new StreamSource ( srcStream ) ; StreamSource stylesheet = stylesheetStream == null ? null : new StreamSource ( stylesheetStream ) ; Fop fop = createFopInstance ( destStream , outputFormat ) ; transform ( src , stylesheet , fop ) ; }
transform an xsl - fo inputstream to the specified outputstream format .
