Package org.apache.tools.ant.util
Class ConcatFileInputStream
java.lang.Object
java.io.InputStream
org.apache.tools.ant.util.ConcatFileInputStream
- All Implemented Interfaces:
 Closeable,AutoCloseable
Special 
InputStream that will
 concatenate the contents of an array of files.- 
Constructor Summary
ConstructorsConstructorDescriptionConcatFileInputStream(File[] file) Construct a newConcatFileInputStreamwith the specifiedFile[]. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the stream.voidLog a message with the specified logging level.intread()Read a byte.voidSet a managingTaskfor thisConcatFileInputStream.voidsetManagingTask(Task task) Set a managingTaskfor thisConcatFileInputStream.Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo 
- 
Constructor Details
- 
ConcatFileInputStream
Construct a newConcatFileInputStreamwith the specifiedFile[].- Parameters:
 file-File[].- Throws:
 IOException- if I/O errors occur.
 
 - 
 - 
Method Details
- 
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.
 - 
setManagingTask
Set a managingTaskfor thisConcatFileInputStream.- Parameters:
 task- the managingTask.
 - 
setManagingComponent
Set a managingTaskfor thisConcatFileInputStream.- Parameters:
 pc- the managingTask.
 - 
log
Log a message with the specified logging level.- Parameters:
 message- theStringmessage.loglevel- theintlogging level.
 
 -