1 package dolda.jsvc.next;
5 public class ColumnWriter extends FilterWriter {
7 public boolean start = true;
9 public ColumnWriter(Writer out) {
14 private void hc(int c) {
19 } else if(c == '\t') {
20 col = (col - (col % 8)) + 8;
24 if(!Character.isWhitespace(c))
28 public void write(int c) throws IOException {
33 public void write(String s, int off, int len) throws IOException {
34 super.write(s, off, len);
35 for(int i = 0; i < s.length(); i++)
39 public void write(char[] b, int off, int len) throws IOException {
40 super.write(b, off, len);
41 for(int i = 0; i < len; i++, off++)
45 public void indent(int level) throws IOException {