terp - the ANT Tasks
v1.3.304

com.codemesh.terp.ant
Class CopyrightFilter

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by org.apache.tools.ant.filters.BaseFilterReader
              extended by org.apache.tools.ant.filters.BaseParamFilterReader
                  extended by com.codemesh.terp.ant.PrefixTemplateFilter
                      extended by 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.


Field Summary
static java.lang.String BATCH_STYLE
           
static java.lang.String C_STYLE
           
static java.lang.String CPP_STYLE
           
static java.lang.String CSHARP_STYLE
           
static java.lang.String JAVA_STYLE
           
static java.lang.String NOTICE_KEY
           
static java.lang.String SHELL_STYLE
           
static java.lang.String STYLE_KEY
           
static java.lang.String VB_STYLE
           
static java.lang.String XML_STYLE
           
 
Fields inherited from class com.codemesh.terp.ant.PrefixTemplateFilter
FILE_KEY, TEMPLATE_KEY, theCurrentPos, theExpandedText, theLength
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CopyrightFilter()
           
CopyrightFilter(java.io.Reader in)
           
 
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 com.codemesh.terp.ant.PrefixTemplateFilter
getFile, getTemplate, read, setFile, setTemplate
 
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
 

Field Detail

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
Constructor Detail

CopyrightFilter

public CopyrightFilter()

CopyrightFilter

public CopyrightFilter(java.io.Reader in)
Method Detail

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

terp - the ANT Tasks
v1.3.304

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