/** * Constructor for the <code>Formatter</code> object. This creates * an object that can be used to write XML in an indented format * to the specified writer. The XML written will be well formed. * * @param result this is where the XML should be written to * @param format this is the format object to use */ public Formatter(Writer result, Format format){ this.result = new BufferedWriter(result, 1024); this.indenter = new Indenter(format); this.buffer = new OutputBuffer(); this.prolog = format.getProlog(); }
/** * Constructor for the <code>Formatter</code> object. This creates * an object that can be used to write XML in an indented format * to the specified writer. The XML written will be well formed. * * @param result this is where the XML should be written to * @param format this is the format object to use */ public Formatter(Writer result, Format format){ this.result = new BufferedWriter(result, 1024); this.indenter = new Indenter(format); this.buffer = new OutputBuffer(); this.prolog = format.getProlog(); }
/** * Constructor for the <code>Formatter</code> object. This creates * an object that can be used to write XML in an indented format * to the specified writer. The XML written will be well formed. * * @param result this is where the XML should be written to * @param format this is the format object to use */ public Formatter(Writer result, Format format){ this.result = new BufferedWriter(result, 1024); this.indenter = new Indenter(format); this.buffer = new OutputBuffer(); this.prolog = format.getProlog(); }