1 55 56 package org.apache.bsf.util; 57 58 import java.io.*; 59 60 68 public class IndentWriter extends PrintWriter 69 { 70 74 public IndentWriter(OutputStream out) 75 { 76 super(out); 77 } 78 82 public IndentWriter(OutputStream out, boolean autoFlush) 83 { 84 super(out, autoFlush); 85 } 86 90 public IndentWriter(Writer out) 91 { 92 super(out); 93 } 94 98 public IndentWriter(Writer out, boolean autoFlush) 99 { 100 super(out, autoFlush); 101 } 102 108 public void print(int numberOfSpaces, String text) 109 { 110 super.print(StringUtils.getChars(numberOfSpaces, ' ') + text); 111 } 112 118 public void println(int numberOfSpaces, String text) 119 { 120 super.println(StringUtils.getChars(numberOfSpaces, ' ') + text); 121 } 122 } 123 | Popular Tags |