Java 我试图使用nagasena示例将字符串转换为高效的xml,但遇到运行时错误 private static void encode(字符串sourceFile)抛出FileNotFoundException、IOException、exoptionexcep

Java 我试图使用nagasena示例将字符串转换为高效的xml,但遇到运行时错误 private static void encode(字符串sourceFile)抛出FileNotFoundException、IOException、exoptionexcep,java,Java,我试图使用nagasena示例将字符串转换为高效的xml,但遇到运行时错误 private static void encode(字符串sourceFile)抛出FileNotFoundException、IOException、exoptionexception、TransmogrifierException{ 字符串sCurrentLine=null; StringBuilder sb=新的StringBuilder(); try(BufferedReader br=new Buffered

我试图使用nagasena示例将字符串转换为高效的xml,但遇到运行时错误
private static void encode(字符串sourceFile)抛出FileNotFoundException、IOException、exoptionexception、TransmogrifierException{
字符串sCurrentLine=null;
StringBuilder sb=新的StringBuilder();
try(BufferedReader br=new BufferedReader(new FileReader(sourceFile))){
而((sCurrentLine=br.readLine())!=null){
某人追加(当前行);
}
}
字符串sb1=sb.toString();
System.out.println(“xml到字符串:+sb1+”\n”);
OutputStream out=null;
//这段代码来自nagasena
GrammarCache GrammarCache;
Transmogrifier Transmogrifier=新Transmogrifier();
grammarCache=新的grammarCache(GrammarOptions.DEFAULT\u选项);
变形器;变形器;变形器;
transmogrifier.setOutputStream(输出);
//将字符串作为输入传递
transmogrifier.encode(新输入源(sb1));
System.out.println(“Check2:字符串到EXI的转换”+out+“\n”);

您在线程“main”java.net.MalformedURLException:no protocol:bSDL Trados Studio 2009 SP1/bspan class=“highlight”革命性软件/span市场上的java.net.URL.(URL.java:586)java.net.URL.(URL.java:483)java.net.URL.(URL.java:432)中得到的异常是什么错误