public class CombinedFileSource extends SourceImpl
| Modifier and Type | Field and Description | 
|---|---|
| static String | FILE_ELEMENT_NAMEThe name of the root element's children of the produced source tree. | 
| static String | PATH_ATTRIBUTE_NAMEThe name of the path attribute of the file elements. | 
| static String | ROOT_ELEMENT_NAMEThe name of the root element of the produced source tree. | 
| Constructor and Description | 
|---|
| CombinedFileSource(Collection<FileSource> fileSources)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| SourceElement | createRootElement()Reads and parses the input file and creates the element tree from it. | 
| byte[] | getContentChecksum()Returns the checksum of all files. | 
| String | getDescription()Returns the path of the files as a description. | 
| Date | getLastModified()Returns the earliest date when any of the source files was last modified. | 
| File | getSourceFile()Returns the source file, if applicable. | 
| String | toString() | 
getRootElementpublic static final String ROOT_ELEMENT_NAME
public static final String FILE_ELEMENT_NAME
public static final String PATH_ATTRIBUTE_NAME
public CombinedFileSource(Collection<FileSource> fileSources)
fileSources - the file sources, not null.NullPointerException - if path or format is null.public SourceElement createRootElement() throws SourceException
createRootElement in class SourceImplSourceException - if the input file cannot be read or parsed.public String getDescription()
Source.getDescription()public File getSourceFile()
public Date getLastModified()
public byte[] getContentChecksum()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.