Package org.apache.tools.ant.util
Class 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 SummaryConstructors Constructor Description ConcatFileInputStream(java.io.File[] file)Construct a newConcatFileInputStreamwith the specifiedFile[].
 - 
Method SummaryModifier and Type Method 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.
 
- 
- 
- 
Method Detail- 
closepublic void close() throws java.io.IOExceptionClose the stream.- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.InputStream
- Throws:
- java.io.IOException- if there is an error.
 
 - 
readpublic int read() throws java.io.IOExceptionRead a byte.- Specified by:
- readin class- java.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.
 
 - 
setManagingTaskpublic void setManagingTask(Task task) Set a managingTaskfor thisConcatFileInputStream.- Parameters:
- task- the managing- Task.
 
 - 
setManagingComponentpublic void setManagingComponent(ProjectComponent pc) Set a managingTaskfor thisConcatFileInputStream.- Parameters:
- pc- the managing- Task.
 
 - 
logpublic void log(java.lang.String message, int loglevel)Log a message with the specified logging level.- Parameters:
- message- the- Stringmessage.
- loglevel- the- intlogging level.
 
 
- 
 
-