| Modifier and Type | Class and Description |
|---|---|
| public class | ChainReaderHelper.
Created type. |
| Modifier and Type | Field and Description |
|---|---|
| public int | bufferSize
The size of the buffer to be used. |
| private static final int | |
| public Vector | filterChains
Chain of filters |
| public Reader | primaryReader
The primary reader to which the reader chain is to be attached. |
| private Project | project
The Ant project |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ChainReaderHelper(Project
ditto project, Reader ditto primaryReader, Iterable<FilterChain> ditto filterChains)Convenience constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static void | cleanUpClassLoaders(List<AntClassLoader> loaders)
Deregisters Classloaders from the project so GC can remove them later. |
| private Reader | expandReader(final AntFilterReader filter, final Reader ancestor, final List<AntClassLoader> classLoadersToCleanUp)
Creates and parameterizes a new FilterReader from a <filterreader> element. |
| public ChainReaderHelper. | |
| public Project | |
| public String | |
| public void | |
| public void | setFilterChains(Vector<FilterChain>
the filter chains collection fchain)Sets the collection of filter reader sets |
| public void | |
| public void | |
| private void | |
| public ChainReaderHelper | Returns: thisditto consumer)Fluent mechanism to apply some |
| public ChainReaderHelper | |
| public ChainReaderHelper | |
| public ChainReaderHelper | |
| public ChainReaderHelper |
| bufferSize | back to summary |
|---|---|
| public int bufferSize The size of the buffer to be used. | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_BUFFER_SIZE | |
| filterChains | back to summary |
|---|---|
| public Vector<FilterChain> filterChains Chain of filters | |
| primaryReader | back to summary |
|---|---|
| public Reader primaryReader The primary reader to which the reader chain is to be attached. | |
| project | back to summary |
|---|---|
| private Project project The Ant project | |
| ChainReaderHelper | back to summary |
|---|---|
| public ChainReaderHelper() Default constructor. | |
| ChainReaderHelper | back to summary |
|---|---|
| public ChainReaderHelper(Project project, Reader primaryReader, Iterable<FilterChain> filterChains) Convenience constructor.
| |
| cleanUpClassLoaders | back to summary |
|---|---|
| private static void cleanUpClassLoaders(List<AntClassLoader> loaders) Deregisters Classloaders from the project so GC can remove them later. | |
| expandReader | back to summary |
|---|---|
| private Reader expandReader(final AntFilterReader filter, final Reader ancestor, final List<AntClassLoader> classLoadersToCleanUp) Creates and parameterizes a new FilterReader from a <filterreader> element.
| |
| getAssembledReader | back to summary |
|---|---|
| public ChainReaderHelper. Assemble the reader
| |
| getProject | back to summary |
|---|---|
| public Project getProject() Get the project
| |
| readFully | back to summary |
|---|---|
| public String readFully(Reader rdr) throws IOException Read data from the reader and return the contents as a string.
| |
| setBufferSize | back to summary |
|---|---|
| public void setBufferSize(int size) Sets the buffer size to be used. Defaults to 8192, if this method is not invoked.
| |
| setFilterChains | back to summary |
|---|---|
| public void setFilterChains(Vector<FilterChain> fchain) Sets the collection of filter reader sets
| |
| setPrimaryReader | back to summary |
|---|---|
| public void setPrimaryReader(Reader rdr) Sets the primary
| |
| setProject | back to summary |
|---|---|
| public void setProject(final Project project) Set the project to work with
| |
| setProjectOnObject | back to summary |
|---|---|
| private void setProjectOnObject(Object obj) helper method to set the project on an object. the reflection setProject does not work for anonymous/protected/private classes, even if they have public methods. | |
| with | back to summary |
|---|---|
| public ChainReaderHelper with(Consumer<ChainReaderHelper> consumer) Fluent mechanism to apply some
| |
| withBufferSize | back to summary |
|---|---|
| public ChainReaderHelper withBufferSize(int size) Fluent buffer size mutator.
| |
| withFilterChains | back to summary |
|---|---|
| public ChainReaderHelper withFilterChains(Iterable<FilterChain> filterChains) Fluent
| |
| withPrimaryReader | back to summary |
|---|---|
| public ChainReaderHelper withPrimaryReader(Reader rdr) Fluent primary
| |
| withProject | back to summary |
|---|---|
| public ChainReaderHelper withProject(Project project) Fluent
| |
| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| protected void | finalize()
Overrides java. |
| public String |
| cleanupLoaders | back to summary |
|---|---|
| private List<AntClassLoader> cleanupLoaders | |
| ChainReader | back to summary |
|---|---|
| private ChainReader(Reader in, List<AntClassLoader> cleanupLoaders) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| readFully | back to summary |
|---|---|
| public String readFully() throws IOException | |