Class SourceFilesEnumeration
java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.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, Charset charset, String lineSeparator) 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
SourceFilesEnumeration
public SourceFilesEnumeration(org.apache.maven.plugin.logging.Log log, List<File> files, Charset charset, String lineSeparator) Enumeration public constructor.- Parameters:
log- Maven plugin logfiles- list of filescharset- Encoding to be used.lineSeparator- String used to separate lines.
-
-
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.
-