Sandro, please try this code
File file = new File("file.mse"); BufferedWriter output = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(file), "UTF-8")); ParseClient client = new MSEPrinter(output); m2.accept(client); output.flush(); output.close();
AA
On 17 Dec 2007, at 18:53 , Toon Verwaest wrote:
You should have a look at Sandros code maybe. I am not as used to Java as you I guess; but I didn't see anything wrong with his code. And especially not linked to the very weird behaviour he got. And the fact that exactly the same code -does- work under linux doesn't make me doubt that it's a java problem. But well... I might be wrong of course.
On (17/12/07 18:45), Adrian Kuhn wrote:
From: Adrian Kuhn akuhn@gmx.ch To: Related to the development of Moose and other related tools moose-dev@iam.unibe.ch Subject: [Moose-dev] Re: Java Import Date: Mon, 17 Dec 2007 18:45:09 +0100
That's silly, please fix that ASAP! In my code I have no problems writing MSE files under windows.
BufferedWriter output = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(new File("file.mse")))); ParseClient client = new MSEPrinter(output); m2.accept(client); output.flush(); output.close();
works fine, AA
On 17 Dec 2007, at 17:28 , Toon Verwaest wrote:
And Sandro also moved from Windows dev to Linux dev since there is a bug in writestreams in Java 1.6 for windows. Correct me if I'm wrong.
cheers, Toon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev