org.apache.tools.ant.utilClass ConcatFileInputStream
- java.lang.Object
- java.io.InputStream
- org.apache.tools.ant.util.ConcatFileInputStream
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
public class ConcatFileInputStream extends java.io.InputStreamSpecialInputStreamthat will concatenate the contents of an array of files.
Constructor Summary
Constructors Constructor and Description ConcatFileInputStream(java.io.File[] file)Construct a newConcatFileInputStreamwith the specifiedFile[].
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Close the stream.voidlog(java.lang.String message, int loglevel)Log a message with the specified logging level.intread()Read a byte.voidsetManagingComponent(ProjectComponent pc)Set a managingTaskfor thisConcatFileInputStream.voidsetManagingTask(Task task)Set a managingTaskfor thisConcatFileInputStream.
Constructor Detail
ConcatFileInputStream
public ConcatFileInputStream(java.io.File[] file) throws java.io.IOExceptionConstruct a newConcatFileInputStreamwith the specifiedFile[].
- Parameters:
file-File[].- Throws:
java.io.IOException- if I/O errors occur.
Method Detail
close
public void close() throws java.io.IOExceptionClose the stream.
- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException- if there is an error.
read
public int read() throws java.io.IOExceptionRead a byte.
- Specified by:
readin classjava.io.InputStream- Returns:
- the byte (0 - 255) or -1 if this is the end of the stream.
- Throws:
java.io.IOException- if there is an error.
setManagingTask
public void setManagingTask(Task task)Set a managingTaskfor thisConcatFileInputStream.
- Parameters:
task- the managingTask.
setManagingComponent
public void setManagingComponent(ProjectComponent pc)Set a managingTaskfor thisConcatFileInputStream.
- Parameters:
pc- the managingTask.
log
public void log(java.lang.String message, int loglevel)Log a message with the specified logging level.
- Parameters:
message- theStringmessage.loglevel- theintlogging level.