org.apache.tools.ant.util
Class ConcatResourceInputStream
InputStreamorg.apache.tools.ant.util.ConcatResourceInputStream
public class ConcatResourceInputStream
extends InputStream
Special InputStream that will
concatenate the contents of Resources from a single ResourceCollection.
void | close()- Close the stream.
|
boolean | isIgnoreErrors()- Find out whether this ConcatResourceInputStream ignores errors.
|
void | log(String message, int loglevel)- Log a message with the specified logging level.
|
int | read()- Read a byte.
|
void | setIgnoreErrors(boolean b)- Set whether this ConcatResourceInputStream ignores errors.
|
void | setManagingComponent(ProjectComponent pc)- Set a managing
ProjectComponent for
this ConcatResourceInputStream.
|
ConcatResourceInputStream
public ConcatResourceInputStream(ResourceCollection rc)
Construct a new ConcatResourceInputStream
for the specified ResourceCollection.
rc - the ResourceCollection to combine.
close
public void close()
throws IOException Close the stream.
isIgnoreErrors
public boolean isIgnoreErrors()
Find out whether this ConcatResourceInputStream ignores errors.
- boolean ignore-errors flag.
log
public void log(String message,
int loglevel) Log a message with the specified logging level.
message - the String message.loglevel - the int logging level.
read
public int read()
throws IOException Read a byte.
- the byte (0 - 255) or -1 if this is the end of the stream.
setIgnoreErrors
public void setIgnoreErrors(boolean b)
Set whether this ConcatResourceInputStream ignores errors.
b - whether to ignore errors.
setManagingComponent
public void setManagingComponent(ProjectComponent pc)
Set a managing ProjectComponent for
this ConcatResourceInputStream.
pc - the managing ProjectComponent.