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
voidclose()
Close the stream.
voidlog(String message, int loglevel)
Log a message with the specified logging level.
intread()
Read a byte.
voidsetManagingComponent(ProjectComponent pc)
Set a managing Task for this ConcatFileInputStream.
voidsetManagingTask(Task task)
Set a managing Task for this ConcatFileInputStream.

Constructor Detail

ConcatFileInputStream

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

Parameters: file File[].

Throws: IOException if I/O errors occur.

Method Detail

close

public void close()
Close the stream.

Throws: IOException if there is an error.

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()
Read a byte.

Returns: the byte (0 - 255) or -1 if this is the end of the stream.

Throws: IOException if there is an error.

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.