Skip to Content
0
Mar 08, 2011 at 06:28 AM

PI 7.1 java mapping

198 Views

Hi,

Till PI 7.0 I was able to test the java mapping locally by using main() method, but in PI 7.1

1. cant we do this local testing?

This is my main() method:

public static void main(String args[]) throws Exception

{

FileInputStream inFile = new FileInputStream("C:/SourceFile.txt");

FileOutputStream outFile = new FileOutputStream("C:/OutputFile.xml");

Javamapping xml = new Javamapping();

xml.transform(inFile,outFile);

System.out.println("Success");

}

When I try to test Iam getting the error at line

xml.transform(inFile,outFile);

i.e, typecasting problem from fileinputstream to transformationinput & fileoutputstream to transformationoutput.

How can i test locally?