public class ResourceFileEntry extends AbstractFileEntry
| Constructor and Description |
|---|
ResourceFileEntry(org.apache.maven.model.Resource resource,
Path file)
Construct a new File entry contained with a Maven resource folder.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
getBase()
Retrieve the base of the file's path, which can be excluded.
|
InputStream |
getInputStream()
Retrieve an input stream that can be used to read the file.
|
protected String |
getOutputBase() |
Path |
getPath()
Retrieve the full path to the file.
|
Long |
getSize()
Retrieve the file's size.
|
String |
getVersion()
Retrieve the file's version.
|
asFileInfo, getOutputRelativePath, getRelativePath, getRelativePathSegementspublic ResourceFileEntry(org.apache.maven.model.Resource resource,
Path file)
resource - the containing Maven resourcefile - the file for this entrypublic Path getBase()
AbstractFileEntrygetBase in class AbstractFileEntryprotected String getOutputBase()
getOutputBase in class AbstractFileEntrypublic Path getPath()
AbstractFileEntrygetPath in interface FileEntrygetPath in class AbstractFileEntrypublic InputStream getInputStream() throws FileNotFoundException
FileEntryFileNotFoundException - if the file does not existpublic String getVersion()
FileEntrynull if a version cannot be determinedCopyright © 2020 National Institute of Standards and Technology. All rights reserved.