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
ConstructorDescriptionConcatFileInputStream
(File[] file) Construct a newConcatFileInputStream
with the specifiedFile[]
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the stream.void
Log a message with the specified logging level.int
read()
Read a byte.void
Set a managingTask
for thisConcatFileInputStream
.void
setManagingTask
(Task task) Set a managingTask
for 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 newConcatFileInputStream
with the specifiedFile[]
.- Parameters:
file
-File[]
.- Throws:
IOException
- if I/O errors occur.
-
-
Method Details
-
close
Close the stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
- if there is an error.
-
read
Read a byte.- Specified by:
read
in 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 managingTask
for thisConcatFileInputStream
.- Parameters:
task
- the managingTask
.
-
setManagingComponent
Set a managingTask
for thisConcatFileInputStream
.- Parameters:
pc
- the managingTask
.
-
log
Log a message with the specified logging level.- Parameters:
message
- theString
message.loglevel
- theint
logging level.
-