Package org.apache.tools.ant.util
Class ConcatResourceInputStream
java.lang.Object
java.io.InputStream
org.apache.tools.ant.util.ConcatResourceInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Special 
InputStream that will
 concatenate the contents of Resources from a single ResourceCollection.- Since:
- Ant 1.7
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct a new ConcatResourceInputStream for the specified ResourceCollection.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close the stream.booleanFind out whether this ConcatResourceInputStream ignores errors.voidLog a message with the specified logging level.intread()Read a byte.voidsetIgnoreErrors(boolean b) Set whether this ConcatResourceInputStream ignores errors.voidSet a managingProjectComponentfor thisConcatResourceInputStream.Methods inherited from class java.io.InputStreamavailable, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
- 
Constructor Details- 
ConcatResourceInputStreamConstruct a new ConcatResourceInputStream for the specified ResourceCollection.- Parameters:
- rc- the ResourceCollection to combine.
 
 
- 
- 
Method Details- 
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.
 
- 
closeClose the stream.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException- if there is an error.
 
- 
readRead a byte.- Specified by:
- readin class- InputStream
- Returns:
- the byte (0 - 255) or -1 if this is the end of the stream.
- Throws:
- IOException- if there is an error.
 
- 
setManagingComponentSet a managingProjectComponentfor thisConcatResourceInputStream.- Parameters:
- pc- the managing- ProjectComponent.
 
- 
logLog a message with the specified logging level.- Parameters:
- message- the- Stringmessage.
- loglevel- the- intlogging level.
 
 
-