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, getRelativePathSegements
public ResourceFileEntry(org.apache.maven.model.Resource resource, Path file)
resource
- the containing Maven resourcefile
- the file for this entrypublic Path getBase()
AbstractFileEntry
getBase
in class AbstractFileEntry
protected String getOutputBase()
getOutputBase
in class AbstractFileEntry
public Path getPath()
AbstractFileEntry
getPath
in interface FileEntry
getPath
in class AbstractFileEntry
public InputStream getInputStream() throws FileNotFoundException
FileEntry
FileNotFoundException
- if the file does not existpublic String getVersion()
FileEntry
null
if a version cannot be determinedCopyright © 2020 National Institute of Standards and Technology. All rights reserved.