public static ArrayList<CoTTypeDef> getCoTTypeMap(InputStream mapInputStream) throws ParserConfigurationException, SAXException, IOException
{
ArrayList<CoTTypeDef> types = null;
String content = getStringFromFile(mapInputStream);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
InputSource source = new InputSource();
source.setCharacterStream(new StringReader(content));
Document doc = db.parse(source);
NodeList nodeList = doc.getElementsByTagName("types");
types = typeBreakdown(nodeList.item(0));
return types;
}
CoTUtilities.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:defense-solutions-proofs-of-concept
作者:
评论列表
文章目录