Class SourceFilesEnumeration

java.lang.Object
com.samaxes.maven.minify.common.SourceFilesEnumeration
All Implemented Interfaces:
Enumeration<InputStream>

public class SourceFilesEnumeration extends Object implements Enumeration<InputStream>
Used to initialize a SequenceInputStream with a Enumeration<? extends InputStream>. The input streams that are produced by the enumeration will be read, in order, to provide the bytes to be read from the SequenceInputStream.
  • Constructor Details

    • SourceFilesEnumeration

      public SourceFilesEnumeration(org.apache.maven.plugin.logging.Log log, List<File> files, boolean verbose)
      Enumeration public constructor.
      Parameters:
      log - Maven plugin log
      files - list of files
      verbose - show source file paths in log output
  • Method Details

    • hasMoreElements

      public boolean hasMoreElements()
      Tests if this enumeration contains more elements.
      Specified by:
      hasMoreElements in interface Enumeration<InputStream>
      Returns:
      true if and only if this enumeration object contains at least one more element to provide; false otherwise.
    • nextElement

      public InputStream nextElement()
      Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
      Specified by:
      nextElement in interface Enumeration<InputStream>
      Returns:
      the next element of this enumeration.
      Throws:
      NoSuchElementException - if no more elements exist.