
jadex.xml.writer.XMLWriterFactoryAndroid Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-android-xmlpull Show documentation
Show all versions of jadex-android-xmlpull Show documentation
This Project includes a variant of the Jadex XML Parser that uses the Android XML Pull API.
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