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 final Reader getAssembledReader()
throws BuildException
Assemble the reader
getProject
public final Project getProject()
Get the project
readFully
public final 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 final void setBufferSize(int size)
Sets the buffer size to be used. Defaults to 4096,
if this method is not invoked.
size
- the buffer size to use
setFilterChains
public final void setFilterChains(Vector fchain)
Sets the collection of filter reader sets
fchain
- the filter chains collection
setPrimaryReader
public final void setPrimaryReader(Reader rdr)
Sets the primary reader
setProject
public final void setProject(Project project)
Set the project to work with
project
- the current project
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.