code: public static void main( String [] args ) throws Exception {
          @SuppressWarnings("resource")
          Reader in = new CommandLineReader( new FileReader(System.in) );
          while ( true )
              System.out.println( in.read() );
      }
docs: Test it