Back to project page Spidermine.
The source code is released under:
Copyright ? 2014 PEMapModder This software is open-source and everyone is welcome to share redistributions or modifications, as long as it is clearly specified that this project's original source is ...
If you think the Android project Spidermine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pemapmodder.easymod; //from w w w.java 2 s.co m import java.io.File; import pemapmodder.easymod.xml.Xml; import pemapmodder.spidermine.SpiderServer; import android.content.Context; import android.os.Bundle; @SuppressWarnings("unused") public class EasyMod { /*public static EasyMod load(File src, Context app, InetSocketAddress server)throws Throwable{ ServerManager.get(server).ccl.info("Loading EasyMod from source at "+src.getAbsolutePath()); return new EasyMod(src, app, ServerManager.get(server)); }*/ private Context app; private SpiderServer server; private Bundle res; private EasyMod(File f, Context app, SpiderServer server) throws Throwable{ if(!f.isFile()){ throw new Throwable("Passed illegal param0 : not a file"); } String ext=""; for(int i=f.getName().length()-1; i>=0; i--) ext=ext+f.getName().charAt(i); ext=ext.split(".", 2)[0]; boolean bool=ext.equalsIgnoreCase("helm")|| ext.equalsIgnoreCase("xml")|| ext.equalsIgnoreCase("easymod")|| ext.equalsIgnoreCase("mod"); //if(!bool) //server.ccl.warning("You are recommended to use the file extension xml, helm, easymod or mod for EasyMod files."); this.app=app; this.server=server; Xml content=Xml.parse(f); } }