org.apache.tools.ant.filters.util
Class ChainReaderHelper
java.lang.Object
org.apache.tools.ant.filters.util.ChainReaderHelper
public final class ChainReaderHelper
extends java.lang.Object
Process a FilterReader chain.
bufferSize
public int bufferSize
The size of the buffer to be used.
filterChains
public Vector filterChains
Chain of filters
primaryReader
public Reader primaryReader
The primary reader to which the reader chain is to be attached.
getAssembledReader
public Reader getAssembledReader()
throws BuildException
Assemble the reader
getProject
public Project getProject()
Get the project
readFully
public String readFully(Reader rdr)
throws IOException
Read data from the reader and return the
contents as a string.
- the contents of the file as a string
setBufferSize
public void setBufferSize(int size)
Sets the buffer size to be used. Defaults to 8192,
if this method is not invoked.
size
- the buffer size to use
setFilterChains
public void setFilterChains(Vector fchain)
Sets the collection of filter reader sets
fchain
- the filter chains collection
setPrimaryReader
public void setPrimaryReader(Reader rdr)
Sets the primary reader
setProject
public void setProject(Project project)
Set the project to work with
project
- the current project