public final class ChainReaderHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
bufferSize
The size of the buffer to be used.
|
java.util.Vector<FilterChain> |
filterChains
Chain of filters
|
java.io.Reader |
primaryReader
The primary reader to which the reader chain is to be attached.
|
| Constructor and Description |
|---|
ChainReaderHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getAssembledReader()
Assemble the reader
|
Project |
getProject()
Get the project
|
java.lang.String |
readFully(java.io.Reader rdr)
Read data from the reader and return the
contents as a string.
|
void |
setBufferSize(int size)
Sets the buffer size to be used.
|
void |
setFilterChains(java.util.Vector<FilterChain> fchain)
Sets the collection of filter reader sets
|
void |
setPrimaryReader(java.io.Reader rdr)
Sets the primary reader
|
void |
setProject(Project project)
Set the project to work with
|
public java.io.Reader primaryReader
public int bufferSize
public java.util.Vector<FilterChain> filterChains
public void setPrimaryReader(java.io.Reader rdr)
rdr - the reader objectpublic void setProject(Project project)
project - the current projectpublic Project getProject()
public void setBufferSize(int size)
size - the buffer size to usepublic void setFilterChains(java.util.Vector<FilterChain> fchain)
fchain - the filter chains collectionpublic java.io.Reader getAssembledReader()
throws BuildException
BuildException - if an error occurspublic java.lang.String readFully(java.io.Reader rdr)
throws java.io.IOException
rdr - the reader objectjava.io.IOException - if an error occurs