Class FileHeaderProcessor

java.lang.Object
org.nuiton.processor.Processor
org.codehaus.mojo.license.header.FileHeaderProcessor

public class FileHeaderProcessor extends org.nuiton.processor.Processor
File header processor.
Since:
1.0
Author:
tchemit dev@tchemit.fr
  • Constructor Details

  • Method Details

    • addHeader

      public String addHeader(String content)
    • isTouched

      public boolean isTouched()
      Returns:
      true if processed file was touched (says the header was fully found), false otherwise
      See Also:
    • isModified

      public boolean isModified()
      Returns:
      true if processed file was modified (says the header was fully found and content changed), false otherwise
      See Also:
    • isDetectHeader

      public boolean isDetectHeader()
      Returns:
      true if header of header was detected
      See Also:
    • process

      public void process(String inputContent, File outputFile, String encoding) throws IOException
      Throws:
      IOException
    • getFileHeaderDescription

      public String getFileHeaderDescription()
    • updateDescription

      public void updateDescription(String description)