public void filter() throws IOException { // START SNIPPET: filter File source = new File("source.txt"); File destination = new File("destination.txt"); Inputs.text(source).transferTo(Outputs.text(destination)); // END SNIPPET: filter }