Code example for InputStreamReader

0
                                       "-f", "/tmp/foo").start();
 
        int exit = p.waitFor();
        if (exit != 0) {
            System.out.println(CharStreams.toString(new InputStreamReader(p.getInputStream())));
            System.out.println(CharStreams.toString(new InputStreamReader(p.getErrorStream())));
        } 
    } 
 
    @Test 
 
    @Ignore 
    public void testBar() throws Exception 
    { 
        System.out.println(new File("tar").getAbsolutePath());
    } 
 
 
}