All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.xml.writer.XMLWriterFactoryDesktop Maven / Gradle / Ivy

package jadex.xml.writer;

/**
 * Factory implementation for the Java SE Environment. Uses {@link Writer}.
 */
public class XMLWriterFactoryDesktop extends XMLWriterFactory
{
	// ---------- methods ------------

	/**
	 * Create a new reader (with genids=true and indent=true).
	 */
	public AWriter createWriter()
	{
		return new Writer();
	}

	/**
	 * Creates a new XML Reader.
	 * 
	 * @param genids
	 * @return reader
	 */
	public AWriter createWriter(boolean genids)
	{
		return new Writer(genids);
	}

	/**
	 * Creates a new default XML Reader.
	 * 
	 * @param genids
	 * @param indents
	 * @return reader
	 */
	public AWriter createWriter(boolean genids, boolean indents)
	{
		return new Writer(genids, indents, true);
	}

	/**
	 * Creates a new default XML Reader.
	 * 
	 * @param genids
	 * @param indents
	 * @return reader
	 */
	public AWriter createWriter(boolean genids, boolean indents, boolean newline)
	{
		return new Writer(genids, indents, newline);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy