将C# 转成Java代码
如题。求大神帮帮忙。谢谢。。。
1 using System;
2 using System.Data;
3 using System.Configuration;
4 using System.Web;
5 using System.Web.Security;
6 using System.Web.UI;
7 using System.Web.UI.WebControls;
8 using System.Web.UI.WebControls.WebParts;
9 using System.Web.UI.HtmlControls;
10 using System.Diagnostics;
11 using System.IO;
12
13 /// <summary>
14 /// Pdf2Swf 将pdf转化为swf
15 /// </summary>
16 public class Pdf2Swf
17 {
18 public Pdf2Swf()
19 {
20 //
21 // TODO: 在此处添加构造函数逻辑
22 //
23 }
24 public void PDFConvertToSWF(string sourcePath, string targetPath)
25 {
26 Process p = new Process();
27 p.StartInfo.FileName = "cmd.exe ";
28 p.StartInfo.UseShellExecute = false;
29 p.StartInfo.RedirectStandardInput = true;
30 p.StartInfo.RedirectStandardOutput = true;
31 p.StartInfo.RedirectStandardError = true;
32 p.StartInfo.CreateNoWindow = true;
33 p.Start();
34 string cmd = "pdf2swf.exe" + " " + sourcePath + " -o " + targetPath;
35 p.StandardInput.WriteLine(cmd);
36 p.Close();
37 }
38 }
需要知道转换过的java 代码应该怎么写