terp - the ANT Tasks
v1.3.304

com.codemesh.terp.ant
Class SourceCodePrepFilter

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by org.apache.tools.ant.filters.BaseFilterReader
              extended by com.codemesh.terp.ant.SourceCodePrepFilter
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable, org.apache.tools.ant.filters.ChainableReader

public class SourceCodePrepFilter
extends org.apache.tools.ant.filters.BaseFilterReader
implements org.apache.tools.ant.filters.ChainableReader

A task that strips out copyright notices and history entries.


Nested Class Summary
static class SourceCodePrepFilter.Copyright
           
static class SourceCodePrepFilter.TrueValue
           
 
Field Summary
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
SourceCodePrepFilter()
           
SourceCodePrepFilter(java.io.Reader rdr)
           
 
Method Summary
 java.io.Reader chain(java.io.Reader rdr)
           
 SourceCodePrepFilter.Copyright createCopyright()
           
 SourceCodePrepFilter.TrueValue createStripCopyright()
           
 SourceCodePrepFilter.TrueValue createStripHistory()
           
 SourceCodePrepFilter.TrueValue createTerminateWithNewLine()
           
 boolean getStripCopyright()
           
 boolean getStripHistory()
           
 boolean getTerminateWithNewline()
           
 int read()
           
 void setStripCopyright(boolean strip)
           
 void setStripHistory(boolean strip)
           
 void setTerminateWithNewLine(boolean term)
           
 
Methods inherited from class org.apache.tools.ant.filters.BaseFilterReader
getInitialized, getProject, read, readFully, readLine, setInitialized, setProject, skip
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceCodePrepFilter

public SourceCodePrepFilter()

SourceCodePrepFilter

public SourceCodePrepFilter(java.io.Reader rdr)
Method Detail

createStripHistory

public SourceCodePrepFilter.TrueValue createStripHistory()

setStripHistory

public void setStripHistory(boolean strip)

getStripHistory

public boolean getStripHistory()

createStripCopyright

public SourceCodePrepFilter.TrueValue createStripCopyright()

setStripCopyright

public void setStripCopyright(boolean strip)

getStripCopyright

public boolean getStripCopyright()

createTerminateWithNewLine

public SourceCodePrepFilter.TrueValue createTerminateWithNewLine()

setTerminateWithNewLine

public void setTerminateWithNewLine(boolean term)

getTerminateWithNewline

public boolean getTerminateWithNewline()

createCopyright

public SourceCodePrepFilter.Copyright createCopyright()

read

public final int read()
               throws java.io.IOException
Overrides:
read in class java.io.FilterReader
Throws:
java.io.IOException

chain

public final java.io.Reader chain(java.io.Reader rdr)
Specified by:
chain in interface org.apache.tools.ant.filters.ChainableReader

terp - the ANT Tasks
v1.3.304

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.