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 Summary
ConstructorsConstructorDescriptionConstruct a new ConcatResourceInputStream for the specified ResourceCollection. -
Method Summary
Modifier 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.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ConcatResourceInputStream
Construct a new ConcatResourceInputStream for the specified ResourceCollection.- Parameters:
rc- the ResourceCollection to combine.
-
-
Method Details
-
setIgnoreErrors
public void setIgnoreErrors(boolean b) Set whether this ConcatResourceInputStream ignores errors.- Parameters:
b- whether to ignore errors.
-
isIgnoreErrors
public boolean isIgnoreErrors()Find out whether this ConcatResourceInputStream ignores errors.- Returns:
- boolean ignore-errors flag.
-
close
Close the stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException- if there is an error.
-
read
Read a byte.- Specified by:
readin classInputStream- Returns:
- the byte (0 - 255) or -1 if this is the end of the stream.
- Throws:
IOException- if there is an error.
-
setManagingComponent
Set a managingProjectComponentfor thisConcatResourceInputStream.- Parameters:
pc- the managingProjectComponent.
-
log
Log a message with the specified logging level.- Parameters:
message- theStringmessage.loglevel- theintlogging level.
-