Class XmlDetector

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.xml.parsers.DocumentBuilder documentBuilder  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected XmlDetector​(java.lang.String namespace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isCompliant​(byte[] fileContentBytes)  
      boolean isCompliant​(java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • documentBuilder

        protected javax.xml.parsers.DocumentBuilder documentBuilder
    • Constructor Detail

      • XmlDetector

        protected XmlDetector​(java.lang.String namespace)
    • Method Detail

      • isCompliant

        public boolean isCompliant​(java.io.File file)
                            throws java.io.IOException
        Specified by:
        isCompliant in interface ArtifactDetector
        Throws:
        java.io.IOException
      • isCompliant

        protected boolean isCompliant​(byte[] fileContentBytes)