Package org.apache.tools.ant.util
Class ConcatResourceInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.apache.tools.ant.util.ConcatResourceInputStream
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class ConcatResourceInputStream extends java.io.InputStreamSpecialInputStreamthat will concatenate the contents of Resources from a single ResourceCollection.- Since:
- Ant 1.7
 
- 
- 
Constructor SummaryConstructors Constructor Description ConcatResourceInputStream(ResourceCollection rc)Construct a new ConcatResourceInputStream for the specified ResourceCollection.
 - 
Method SummaryModifier and Type Method Description voidclose()Close the stream.booleanisIgnoreErrors()Find out whether this ConcatResourceInputStream ignores errors.voidlog(java.lang.String message, int loglevel)Log a message with the specified logging level.intread()Read a byte.voidsetIgnoreErrors(boolean b)Set whether this ConcatResourceInputStream ignores errors.voidsetManagingComponent(ProjectComponent pc)Set a managingProjectComponentfor thisConcatResourceInputStream.
 
- 
- 
- 
Constructor Detail- 
ConcatResourceInputStreampublic ConcatResourceInputStream(ResourceCollection rc) Construct a new ConcatResourceInputStream for the specified ResourceCollection.- Parameters:
- rc- the ResourceCollection to combine.
 
 
- 
 - 
Method Detail- 
setIgnoreErrorspublic void setIgnoreErrors(boolean b) Set whether this ConcatResourceInputStream ignores errors.- Parameters:
- b- whether to ignore errors.
 
 - 
isIgnoreErrorspublic boolean isIgnoreErrors() Find out whether this ConcatResourceInputStream ignores errors.- Returns:
- boolean ignore-errors flag.
 
 - 
closepublic void close() throws java.io.IOExceptionClose the stream.- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.InputStream
- Throws:
- java.io.IOException- if there is an error.
 
 - 
readpublic int read() throws java.io.IOExceptionRead a byte.- Specified by:
- readin class- java.io.InputStream
- Returns:
- the byte (0 - 255) or -1 if this is the end of the stream.
- Throws:
- java.io.IOException- if there is an error.
 
 - 
setManagingComponentpublic void setManagingComponent(ProjectComponent pc) Set a managingProjectComponentfor thisConcatResourceInputStream.- Parameters:
- pc- the managing- ProjectComponent.
 
 - 
logpublic void log(java.lang.String message, int loglevel)Log a message with the specified logging level.- Parameters:
- message- the- Stringmessage.
- loglevel- the- intlogging level.
 
 
- 
 
-