import java.io.StringReader;import java.io.FilterReader;import java.io.IOException; /** * Created by IntelliJ IDEA. * User: me * Date: 13.09.2006 * Time: 16:48:39 * To change this template use File | Settings | File Templates. */public class UpperCaseConvertorTest { public static void main(String[] args) throws IOException { StringReader src = new StringReader(args[0]); FilterReader f = new UpperCaseConvertor(src); int c; while ((c = f.read()) != -1) System.out.print((char)c); System.out.println(); }}