xml在随意某个包路径下:
String s_xmlpath="com\xml\hotspot.xml";
ClassLoader classLoader=HotspotXmlParser.class.getClassLoader();
InputStream in=classLoader.getResourceAsStream(s_xmlpath); 这样读取xml文件应该比较自由,但是却提示HotspotXmlParser cannot be resolved to a type。不知道它是在哪个包里。如何引用,请告知!
String s_xmlpath="com\xml\hotspot.xml";
ClassLoader classLoader=HotspotXmlParser.class.getClassLoader();
InputStream in=classLoader.getResourceAsStream(s_xmlpath); 这样读取xml文件应该比较自由,但是却提示HotspotXmlParser cannot be resolved to a type。不知道它是在哪个包里。如何引用,请告知!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货