package class8_2_StreamDecorator_start; import java.io.FilterWriter; import java.io.IOException; import java.io.Writer; /** * This writer will scramble the input given to it, * reversing every other character. * * If ABCDEF is written into it, it will write * BADCFE * * However, it simply prints CR and LF straight through. * You may assume that each line has an even number of characters. */ public class ScrambleWriter extends FilterWriter { public ScrambleWriter(Writer out) { super(out); } @Override public void write(String str, int off, int len) throws IOException { for(int i = off; i