Class ConcatFileInputStream

java.lang.Object
java.io.InputStream
org.apache.tools.ant.util.ConcatFileInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ConcatFileInputStream extends InputStream
Special InputStream that will concatenate the contents of an array of files.
  • Constructor Details

    • ConcatFileInputStream

      public ConcatFileInputStream(File[] file) throws IOException
      Construct a new ConcatFileInputStream with the specified File[].
      Parameters:
      file - File[].
      Throws:
      IOException - if I/O errors occur.
  • Method Details

    • close

      public void close() throws IOException
      Close the stream.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException - if there is an error.
    • read

      public int read() throws IOException
      Read a byte.
      Specified by:
      read in class InputStream
      Returns:
      the byte (0 - 255) or -1 if this is the end of the stream.
      Throws:
      IOException - if there is an error.
    • setManagingTask

      public void setManagingTask(Task task)
      Set a managing Task for this ConcatFileInputStream.
      Parameters:
      task - the managing Task.
    • setManagingComponent

      public void setManagingComponent(ProjectComponent pc)
      Set a managing Task for this ConcatFileInputStream.
      Parameters:
      pc - the managing Task.
    • log

      public void log(String message, int loglevel)
      Log a message with the specified logging level.
      Parameters:
      message - the String message.
      loglevel - the int logging level.