Package com.samaxes.maven.minify.common
Class SourceFilesEnumeration
java.lang.Object
com.samaxes.maven.minify.common.SourceFilesEnumeration
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionSourceFilesEnumeration(org.apache.maven.plugin.logging.Log log, List<File> files, boolean verbose) Enumeration public constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this enumeration contains more elements.Returns the next element of this enumeration if this enumeration object has at least one more element to provide.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Tests if this enumeration contains more elements.- Specified by:
hasMoreElementsin interfaceEnumeration<InputStream>- Returns:
trueif and only if this enumeration object contains at least one more element to provide;falseotherwise.
-
nextElement
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElementin interfaceEnumeration<InputStream>- Returns:
- the next element of this enumeration.
- Throws:
NoSuchElementException- if no more elements exist.
-