/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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(); }
/** * Constructs an instance. * * @param out {@code non-null;} writer to send final output to * @param width {@code >= 0;} the maximum output width (not including * {@code prefix}), or {@code 0} for no maximum * @param prefix {@code non-null;} the prefix for each line */ public IndentingWriter(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++;
bol(); } else { column++;
bol(); } else { column++;
bol(); } else { column++;
bol(); } else { column++;
bol(); } else { column++;
bol(); } else { column++;
bol(); } else { column++;