2013-04-18 23:35:02 +02:00
|
|
|
package net.osmand;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.xmlpull.v1.XmlPullParser;
|
|
|
|
import org.xmlpull.v1.XmlPullParserException;
|
2017-02-10 16:55:56 +01:00
|
|
|
import org.xmlpull.v1.XmlSerializer;
|
2013-04-18 23:35:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* That class is replacing of standard LogFactory due to
|
|
|
|
* problems with Android implementation of LogFactory.
|
|
|
|
* See Android analog of LogUtil
|
|
|
|
*
|
|
|
|
* That class should be very simple & always use LogFactory methods,
|
|
|
|
* there is an intention to delegate all static methods to LogFactory.
|
|
|
|
*/
|
|
|
|
public class PlatformUtil {
|
|
|
|
|
|
|
|
public static Log getLog(Class<?> cl){
|
|
|
|
return LogFactory.getLog(cl);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static XmlPullParser newXMLPullParser() throws XmlPullParserException{
|
|
|
|
return new org.kxml2.io.KXmlParser();
|
|
|
|
}
|
2017-02-10 16:55:56 +01:00
|
|
|
|
|
|
|
public static XmlSerializer newSerializer() {
|
|
|
|
return new org.kxml2.io.KXmlSerializer();
|
|
|
|
}
|
2013-04-18 23:35:02 +02:00
|
|
|
|
|
|
|
}
|