OsmAnd/OsmAnd-java/src/net/osmand/PlatformUtil.java
2014-12-05 23:33:58 +01:00

28 lines
723 B
Java

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;
/**
* 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();
}
}