public class ConcatFileInputStream extends InputStream
InputStream
that will
concatenate the contents of an array of files.Constructor and Description |
---|
ConcatFileInputStream(File[] file)
Construct a new
ConcatFileInputStream
with the specified File[] . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream.
|
void |
log(String message,
int loglevel)
Log a message with the specified logging level.
|
int |
read()
Read a byte.
|
void |
setManagingComponent(ProjectComponent pc)
Set a managing
Task for
this ConcatFileInputStream . |
void |
setManagingTask(Task task)
Set a managing
Task for
this ConcatFileInputStream . |
available, mark, markSupported, read, read, reset, skip
public ConcatFileInputStream(File[] file) throws IOException
ConcatFileInputStream
with the specified File[]
.file
- File[]
.IOException
- if I/O errors occur.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
- if there is an error.public void log(String message, int loglevel)
message
- the String
message.loglevel
- the int
logging level.public int read() throws IOException
read
in class InputStream
IOException
- if there is an error.public void setManagingComponent(ProjectComponent pc)
Task
for
this ConcatFileInputStream
.pc
- the managing Task
.public void setManagingTask(Task task)
Task
for
this ConcatFileInputStream
.task
- the managing Task
.