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 TypeMethodDescriptionboolean
Tests 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, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Tests if this enumeration contains more elements.- Specified by:
hasMoreElements
in interfaceEnumeration<InputStream>
- Returns:
true
if and only if this enumeration object contains at least one more element to provide;false
otherwise.
-
nextElement
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElement
in interfaceEnumeration<InputStream>
- Returns:
- the next element of this enumeration.
- Throws:
NoSuchElementException
- if no more elements exist.
-