jadex.xml.reader.ReadContextAndroid 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 the a variant of the Jadex XML Parser using the Android XML Pull API.
The newest version!
package jadex.xml.reader;
import jadex.commons.collection.MultiCollection;
import jadex.xml.StackElement;
import jadex.xml.TypeInfoPathManager;
import jadex.xml.stax.ILocation;
import jadex.xml.stax.Location;
import jadex.xml.stax.XMLReporter;
import java.util.List;
import java.util.Map;
import org.xmlpull.v1.XmlPullParser;
/**
* Android Implementation of {@link AReadContext}.
*/
public class ReadContextAndroid extends AReadContext
{
//-------- constructors --------
public ReadContextAndroid(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, XmlPullParser parser, XMLReporter reporter,
Object callcontext, ClassLoader classloader)
{
super(pathmanager, handler, parser, reporter, callcontext, classloader);
}
public ReadContextAndroid(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, XmlPullParser parser, XMLReporter reporter,
Object callcontext, ClassLoader classloader, Object root, List stack, StackElement topse, String comment, Map readobjects,
int readignore, MultiCollection postprocessors)
{
super(pathmanager, handler, parser, reporter, callcontext, classloader, root, stack, topse, comment, readobjects, readignore,
postprocessors);
}
//-------- methods --------
/**
* Returns the current parser location.
* @return Location
*/
public ILocation getLocation()
{
return new Location(parser.getLineNumber(),
parser.getColumnNumber(), 0, null, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy