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()
voidlog(String message, int loglevel)
Log a message with the specified logging level.
intread()
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()

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()

setManagingComponent

public void setManagingComponent(ProjectComponent pc)
Set a managing Task for this ConcatFileInputStream.

Parameters: task the managing Task.

setManagingTask

public void setManagingTask(Task task)
Set a managing Task for this ConcatFileInputStream.

Parameters: task the managing Task.

Copyright