Jacson

de.spieleck.app.jacson.ant
Class JacsonAntFilter

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.FilterReader
          extended byde.spieleck.app.jacson.JacsonReader
              extended byde.spieleck.app.jacson.ant.JacsonAntFilter

public class JacsonAntFilter
extends JacsonReader

Wrap a Jacson into a FilterReader which works within a Ant FilterChain.

Parameters can be be feed thru the FilterReader/param mechanism. The parameter

   
 
is necessary to point to a configuration file to make Jacson work. Note that Configurations used by will not work with all kinds of reports. PrintingReport and ValuePrintingReport will work.

Since:
0.80
Author:
fsn

Field Summary
protected  Parameter[] parameters
          The filter parameters.
protected  Project project
          The environmental project.
 
Fields inherited from class de.spieleck.app.jacson.JacsonReader
configName, jacson, PIPE_BROKEN, pWriter, reader, rootState, WRITE_END_DEAD
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
JacsonAntFilter(java.io.Reader reader)
          Create this filter.
 
Method Summary
 Project getProject()
          Get the project.
protected  JacsonState obtainRootState()
          Factory method for root state.
 void setParameters(Parameter[] parameters)
          Store the filter parameters.
 void setProject(Project project)
          Store the environmental Ant project.
 
Methods inherited from class de.spieleck.app.jacson.JacsonReader
close, isIgnorableException, mark, markSupported, read, read, ready, reset, runJacson, setConfig, setupJacson, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected Project project
The environmental project. XXX not working.


parameters

protected Parameter[] parameters
The filter parameters.

Constructor Detail

JacsonAntFilter

public JacsonAntFilter(java.io.Reader reader)
                throws JacsonConfigException,
                       java.io.IOException
Create this filter.

Method Detail

setProject

public void setProject(Project project)
Store the environmental Ant project.

Parameters:
project - this is the project. XXX Not called by ant!

getProject

public Project getProject()
Get the project.

Returns:
the project stored XXX Not called by ant!

setParameters

public void setParameters(Parameter[] parameters)
Store the filter parameters.

Parameters:
parameters - the environmental parameters.

obtainRootState

protected JacsonState obtainRootState()
Description copied from class: JacsonReader
Factory method for root state. Override in subclasses.

Overrides:
obtainRootState in class JacsonReader

Spieleck

Copyleft 2002 spieleck.de.