com.codemesh.terp.ant
Class SourceCodePrepFilter
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.tools.ant.filters.BaseFilterReader
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.
| Fields inherited from class java.io.FilterReader |
in |
| Fields inherited from class java.io.Reader |
lock |
| 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 |
SourceCodePrepFilter
public SourceCodePrepFilter()
SourceCodePrepFilter
public SourceCodePrepFilter(java.io.Reader rdr)
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
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.