CoTUtilities.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:defense-solutions-proofs-of-concept 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号