Class FlattenMojo.SaxHeaderCommentHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.xml.sax.ext.DefaultHandler2
org.codehaus.mojo.flatten.FlattenMojo.SaxHeaderCommentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler
Enclosing class:
FlattenMojo

private class FlattenMojo.SaxHeaderCommentHandler extends DefaultHandler2
This class is a simple SAX handler that extracts the first comment located before the root tag in an XML document.
  • Field Details

    • rootTagSeen

      private boolean rootTagSeen
      true if root tag has already been visited, false otherwise.
    • headerComment

      private String headerComment
      See Also:
  • Constructor Details

    • SaxHeaderCommentHandler

      SaxHeaderCommentHandler()
      The constructor.
  • Method Details