org.apache.tools.ant.util

Class ConcatFileInputStream


public class ConcatFileInputStream
extends InputStream

Special InputStream that will concatenate the contents of an array of files.

Constructor Summary

ConcatFileInputStream(File[] file)
Construct a new ConcatFileInputStream with the specified File[].

Method Summary

void
close()
Close the stream.
void
log(String message, int loglevel)
Log a message with the specified logging level.
int
read()
Read a byte.
void
setManagingComponent(ProjectComponent pc)
Set a managing Task for this ConcatFileInputStream.
void
setManagingTask(Task task)
Set a managing Task for this ConcatFileInputStream.

Constructor Details

ConcatFileInputStream

public ConcatFileInputStream(File[] file)
            throws IOException
Construct a new ConcatFileInputStream with the specified File[].
Parameters:
file - File[].

Method Details

close

public void close()
            throws IOException
Close the stream.

log

public void log(String message,
                int loglevel)
Log a message with the specified logging level.
Parameters:
message - the String message.
loglevel - the int logging level.

read

public int read()
            throws IOException
Read a byte.
Returns:
the byte (0 - 255) or -1 if this is the end of the stream.

setManagingComponent

public void setManagingComponent(ProjectComponent pc)
Set a managing Task for this ConcatFileInputStream.
Parameters:
pc - the managing Task.

setManagingTask

public void setManagingTask(Task task)
Set a managing Task for this ConcatFileInputStream.
Parameters:
task - the managing Task.