Re: problems with base64, ascii and php

2008-08-29 Thread Luc Maisonobe
Nikola Petrović a écrit : Hello all, I have a problem with base64 codec and encoding ascii characters. Here`s the code: int ok=0, bad=0; for(int i=128; i256; i++){ char c = (char)i; str = + c; String

Re: problems with base64, ascii and php

2008-08-29 Thread Luc Maisonobe
Luc Maisonobe a écrit : Nikola Petrović a écrit : Hello all, I have a problem with base64 codec and encoding ascii characters. Here`s the code: int ok=0, bad=0; for(int i=128; i256; i++){ char c = (char)i; str = + c;

Re: Commons validator

2008-08-29 Thread Niall Pemberton
On Fri, Aug 29, 2008 at 5:36 AM, Vinay Binny [EMAIL PROTECTED] wrote: Hi all, I see a compareDates method in the DateValidator class of the routine package, I was wondering if I could use it directly in my validator-rules.xml by specifying something like: validator name=compareDate

Re: Betwixt: Trouble reading Map data [BUG]

2008-08-29 Thread Peter_Ford
It took a while but I figured out what was wrong. This looks like a bug in Betwixt. In the generated XML below, the entry element contains tags Key and Value (note the capitalization). When reading back, Betwixt appears to be looking instead for key and value (no capitalization). If I pass the

Commons-io 1.4 build: unit tests failing

2008-08-29 Thread Brosnan, Michael
Hi I'm running the unit tests for commons-io on solaris, and they are failing on the df command [java] There was 1 error: [java] 1) testGetFreeSpace_String(org.apache.commons.io.FileSystemUtilsTestCase)java.i o.IOException: Command line 'df' did not return info as expected for path

DBCP:AbandonedObjectPool how to use it please help

2008-08-29 Thread Hussain, Arshad
I am newbie to DBCP and want to know how to configure DCP so AbandonedObjectPool works This my connection paramters connectionPool = new GenericObjectPool(null); connectionPool.setMinIdle(2); connectionPool.setMaxActive(3); ConnectionFactory connectionFactory = new

Displaying the output file using apache fileupload

2008-08-29 Thread Agnes Laffitte
Hello, by using java i have read an input file and written the output file. Now I want the server to display the content of the output file. I have the output file name, and the method I used to write the output file was by using the following fragment of code: PrintWriter out = new

MultiValueMap and Generics

2008-08-29 Thread v2cg4ss
I have the following code, is there away to traverse the MVM without using Iterator's and using the Types of the content of the TreeMap. I've tried in Eclipse and it flags the code with type safety warnings and errors. MultiValueMap mvm = MultiValueMap.decorate(new TreeMapInteger, String());

[Commons Configuration] Setting up a Java application reading a file Properties.

2008-08-29 Thread Pierre8rou
Hello, I'd like to set up a Java application reading a file Properties. I think achieve this by filling a class Params and OtherParams classes. I think using Apache Commons Configuration. How to write my file Properties? How to read the file properties to fill Params class and OtherParams class

Re: [Commons Configuration] Setting up a Java application reading a file Properties.

2008-08-29 Thread Oliver Heger
Pierre8rou schrieb: Hello, I'd like to set up a Java application reading a file Properties. I think achieve this by filling a class Params and OtherParams classes. I think using Apache Commons Configuration. How to write my file Properties? How to read the file properties to fill Params class

MultiValueMap not Releasing Objects

2008-08-29 Thread v2cg4ss
I have a mulitvaluemap with a string key and string values, when I clear the MVM and retrieve the free memory it has barely changed. I force a GC the same results. I iterate through the MVM and set the value for a key to null, and then force a GC I get some memory back but not nearly the amount