public class SourceFilesEnumeration extends Object implements Enumeration<InputStream>
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 and Description |
---|
SourceFilesEnumeration(Log log,
List<File> files,
boolean verbose)
Enumeration public constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
InputStream |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
|
public SourceFilesEnumeration(Log log, List<File> files, boolean verbose)
log
- Maven plugin logfiles
- list of filesverbose
- show source file paths in log outputpublic boolean hasMoreElements()
hasMoreElements
in interface Enumeration<InputStream>
true
if and only if this enumeration object contains at least one more element to provide;
false
otherwise.public InputStream nextElement()
nextElement
in interface Enumeration<InputStream>
NoSuchElementException
- if no more elements exist.Copyright © 2009–2016 Samuel Santos. All rights reserved.