org.codehaus.mojo.license.header
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
Fields inherited from class org.nuiton.processor.Processor |
inputFilter, outputFilter |
Methods inherited from class org.nuiton.processor.Processor |
getReader, process, setInputFilter, setInputFilter, setOutputFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configuration
protected FileHeaderProcessorConfiguration configuration
- processor configuration
filter
protected FileHeaderFilter filter
- internal file header filter
FileHeaderProcessor
public FileHeaderProcessor()
getConfiguration
public FileHeaderProcessorConfiguration getConfiguration()
getFilter
public FileHeaderFilter getFilter()
isTouched
public boolean isTouched()
- Returns:
true
if processed file was touched (says the header was
fully found), false
otherwise- See Also:
FileHeaderFilter.isTouched()
isModified
public boolean isModified()
- Returns:
true
if processed file was modified (says the header was
fully found and content changed), false
otherwise- See Also:
FileHeaderFilter.isModified()
isDetectHeader
public boolean isDetectHeader()
- Returns:
true
if header of header was detected- See Also:
FileHeaderFilter.isDetectHeader()
process
public void process(File filein,
File fileout)
throws IOException,
IllegalStateException
- Throws:
IOException
IllegalStateException
populateFilter
public void populateFilter()
setConfiguration
public void setConfiguration(FileHeaderProcessorConfiguration configuration)
setFilter
public void setFilter(FileHeaderFilter filter)
reset
public void reset()
getFileHeader
protected FileHeader getFileHeader()
getTransformer
protected FileHeaderTransformer getTransformer()
checkInit
protected void checkInit()
throws IllegalStateException
- Throws:
IllegalStateException
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.