/** * Sets the new format logic for the StAXStreamOutputter. Note the Format object is * cloned internally before use. * * @see #getFormat() * @param newFormat * the format to use for subsequent output */ public void setFormat(Format newFormat) { this.myFormat = newFormat.clone(); }
/** * Sets the new format logic for the StAXStreamOutputter. Note the Format object is * cloned internally before use. * * @see #getFormat() * @param newFormat * the format to use for subsequent output */ public void setFormat(Format newFormat) { this.myFormat = newFormat.clone(); }
/** * Sets the new format logic for the XMLOutputter. Note the Format object is * cloned internally before use. * * @see #getFormat() * @param newFormat * the format to use for subsequent output */ public void setFormat(Format newFormat) { this.myFormat = newFormat.clone(); }
/** * This will create an <code>XMLOutputter</code> with the specified format * characteristics. * <p> * <b>Note:</b> the format object is cloned internally before use. If you * want to modify the Format after constructing the XMLOutputter you can * modify the Format instance {@link #getFormat()} returns. * * @param format * The Format instance to use. This instance will be cloned() and as * a consequence, changes made to the specified format instance * <b>will not</b> be reflected in this XMLOutputter. A null input * format indicates that XMLOutputter should use the default * {@link Format#getRawFormat()} * @param processor * The XMLOutputProcessor to delegate output to. If null the * XMLOutputter will use the default XMLOutputProcessor. */ public XMLOutputter(Format format, XMLOutputProcessor processor) { myFormat = format == null ? Format.getRawFormat() : format.clone(); myProcessor = processor == null ? DEFAULTPROCESSOR : processor; }
/** * This will create an <code>StAXStreamOutputter</code> with the specified format * characteristics. * <p> * <b>Note:</b> the format object is cloned internally before use. If you * want to modify the Format after constructing the StAXStreamOutputter you can * modify the Format instance {@link #getFormat()} returns. * * @param format * The Format instance to use. This instance will be cloned() and as * a consequence, changes made to the specified format instance * <b>will not</b> be reflected in this StAXStreamOutputter. A null input * format indicates that StAXStreamOutputter should use the default * {@link Format#getRawFormat()} * @param processor * The XMLOutputProcessor to delegate output to. If null the * StAXStreamOutputter will use the default XMLOutputProcessor. */ public StAXStreamOutputter(Format format, StAXStreamProcessor processor) { myFormat = format == null ? Format.getRawFormat() : format.clone(); myProcessor = processor == null ? DEFAULTPROCESSOR : processor; }
/** * This will create an <code>StAXStreamOutputter</code> with the specified format * characteristics. * <p> * <b>Note:</b> the format object is cloned internally before use. If you * want to modify the Format after constructing the StAXStreamOutputter you can * modify the Format instance {@link #getFormat()} returns. * * @param format * The Format instance to use. This instance will be cloned() and as * a consequence, changes made to the specified format instance * <b>will not</b> be reflected in this StAXStreamOutputter. A null input * format indicates that StAXStreamOutputter should use the default * {@link Format#getRawFormat()} * @param processor * The XMLOutputProcessor to delegate output to. If null the * StAXStreamOutputter will use the default XMLOutputProcessor. * @param eventfactory * The factory to use to create XMLEvent instances. */ public StAXEventOutputter(Format format, StAXEventProcessor processor, XMLEventFactory eventfactory) { myFormat = format == null ? Format.getRawFormat() : format.clone(); myProcessor = processor == null ? DEFAULTPROCESSOR : processor; myEventFactory = eventfactory == null ? DEFAULTEVENTFACTORY : eventfactory; }