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 SummaryConstructorsConstructorDescriptionConcatFileInputStream(File[] file) Construct a newConcatFileInputStreamwith the specifiedFile[].
- 
Method SummaryModifier 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.InputStreamavailable, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
- 
Constructor Details- 
ConcatFileInputStreamConstruct a newConcatFileInputStreamwith the specifiedFile[].- Parameters:
- file-- File[].
- Throws:
- IOException- if I/O errors occur.
 
 
- 
- 
Method Details- 
closeClose the stream.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException- if there is an error.
 
- 
readRead a byte.- Specified by:
- readin class- InputStream
- Returns:
- the byte (0 - 255) or -1 if this is the end of the stream.
- Throws:
- IOException- if there is an error.
 
- 
setManagingTaskSet a managingTaskfor thisConcatFileInputStream.- Parameters:
- task- the managing- Task.
 
- 
setManagingComponentSet a managingTaskfor thisConcatFileInputStream.- Parameters:
- pc- the managing- Task.
 
- 
logLog a message with the specified logging level.- Parameters:
- message- the- Stringmessage.
- loglevel- the- intlogging level.
 
 
-