com.codemesh.terp.ant
Class CopyrightFilter
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.tools.ant.filters.BaseFilterReader
org.apache.tools.ant.filters.BaseParamFilterReader
com.codemesh.terp.ant.PrefixTemplateFilter
com.codemesh.terp.ant.CopyrightFilter
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable, org.apache.tools.ant.filters.ChainableReader, org.apache.tools.ant.types.Parameterizable
public class CopyrightFilter
- extends PrefixTemplateFilter
A filter that prefixes a copyright notice.
| Fields inherited from class java.io.FilterReader |
in |
| Fields inherited from class java.io.Reader |
lock |
|
Method Summary |
java.io.Reader |
chain(java.io.Reader rdr)
|
protected void |
expand()
|
java.lang.String |
getNotice()
|
java.lang.String |
getStyle()
|
protected void |
initialize()
Scans the parameters list for the "template" parameter and uses
it to set the template that will be prefixed in expanded form. |
void |
setNotice(java.lang.String notice)
|
void |
setStyle(java.lang.String style)
|
| Methods inherited from class org.apache.tools.ant.filters.BaseParamFilterReader |
getParameters, setParameters |
| 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 |
NOTICE_KEY
public static final java.lang.String NOTICE_KEY
- See Also:
- Constant Field Values
STYLE_KEY
public static final java.lang.String STYLE_KEY
- See Also:
- Constant Field Values
BATCH_STYLE
public static final java.lang.String BATCH_STYLE
- See Also:
- Constant Field Values
C_STYLE
public static final java.lang.String C_STYLE
- See Also:
- Constant Field Values
CPP_STYLE
public static final java.lang.String CPP_STYLE
- See Also:
- Constant Field Values
CSHARP_STYLE
public static final java.lang.String CSHARP_STYLE
- See Also:
- Constant Field Values
JAVA_STYLE
public static final java.lang.String JAVA_STYLE
- See Also:
- Constant Field Values
SHELL_STYLE
public static final java.lang.String SHELL_STYLE
- See Also:
- Constant Field Values
VB_STYLE
public static final java.lang.String VB_STYLE
- See Also:
- Constant Field Values
XML_STYLE
public static final java.lang.String XML_STYLE
- See Also:
- Constant Field Values
CopyrightFilter
public CopyrightFilter()
CopyrightFilter
public CopyrightFilter(java.io.Reader in)
setNotice
public void setNotice(java.lang.String notice)
getNotice
public java.lang.String getNotice()
setStyle
public void setStyle(java.lang.String style)
getStyle
public java.lang.String getStyle()
chain
public java.io.Reader chain(java.io.Reader rdr)
- Specified by:
chain in interface org.apache.tools.ant.filters.ChainableReader- Overrides:
chain in class PrefixTemplateFilter
expand
protected void expand()
- Overrides:
expand in class PrefixTemplateFilter
initialize
protected void initialize()
- Description copied from class:
PrefixTemplateFilter
- Scans the parameters list for the "template" parameter and uses
it to set the template that will be prefixed in expanded form.
- Overrides:
initialize in class PrefixTemplateFilter
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.