Package com.intellij.util.xml

Examples of com.intellij.util.xml.XmlFileHeader


    @Override
    public Map<String, Void> map(FileContent inputData) {
        if (StdFileTypes.XML.equals(inputData.getFileType())) {
            boolean isPropertiesXml = false;
            try {
                XmlFileHeader fileHeader = NanoXmlUtil.parseHeaderWithException(inputData.getFile());
                isPropertiesXml = "properties".equals(fileHeader.getRootTagLocalName());
            } catch (IOException ignore) {
            }
            if (!isPropertiesXml) {
                return Collections.emptyMap(); // if not, nothing to map here
            }
View Full Code Here

TOP

Related Classes of com.intellij.util.xml.XmlFileHeader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.