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

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

Go to download

This Project includes the a variant of the Jadex XML Parser using the Android XML Pull API.

The newest version!
package jadex.xml.writer;


/**
 * Factory implementation for Android.
 */
public class XMLWriterFactoryAndroid extends XMLWriterFactory
{

	@Override
	public AWriter createWriter()
	{
		return createWriter(true);
	}

	@Override
	public AWriter createWriter(boolean genids)
	{
		return createWriter(genids, true);
	}

	@Override
	public AWriter createWriter(boolean genids, boolean indent)
	{
		return new PullParserWriter(genids, indent);
	}
	
	@Override
	public AWriter createWriter(boolean genids, boolean indent, boolean newline)
	{
		// Todo: support disabling generation of newline characters.
		return new PullParserWriter(genids, indent);		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy