/** * Constructs an instance. * * @param out non-null; writer to send final output to * @param width >= 0; the maximum output width (not including * <code>prefix</code>), or <code>0</code> for no maximum * @param prefix non-null; the prefix for each line */ public WrappedIndentingWriter(Writer out, int width, String prefix) { super(out); if (out == null) { throw new NullPointerException("out == null"); } if (width < 0) { throw new IllegalArgumentException("width < 0"); } if (prefix == null) { throw new NullPointerException("prefix == null"); } this.width = (width != 0) ? width : Integer.MAX_VALUE; this.maxIndent = width >> 1; this.prefix = (prefix.length() == 0) ? null : prefix; bol(); }
bol(); } else { column++;