| Constructor and Description |
|---|
ArchiveFileEntry(org.codehaus.plexus.archiver.ArchiveEntry archiveEntry,
org.apache.maven.artifact.Artifact artifact)
Construct a new file entry based on archive data.
|
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.plexus.components.io.fileselectors.FileInfo |
asFileInfo() |
InputStream |
getInputStream()
Retrieve an input stream that can be used to read the file.
|
String |
getOutputRelativePath()
Retrieve the path to the file relative to where it is to be output.
|
Path |
getPath()
Retrieve the path to the file.
|
List<String> |
getRelativePathSegements(String swidTagPath)
Retrieve the relative path of to the SWID Tag.
|
Long |
getSize()
Retrieve the file's size.
|
String |
getVersion()
Retrieve the file's version.
|
public ArchiveFileEntry(org.codehaus.plexus.archiver.ArchiveEntry archiveEntry,
org.apache.maven.artifact.Artifact artifact)
archiveEntry - the archive metadataartifact - optional artifact metadatapublic Long getSize()
FileEntrypublic InputStream getInputStream() throws IOException
FileEntrygetInputStream in interface FileEntryFileNotFoundException - if the file does not existIOException - if the file cannot be readpublic String getVersion()
FileEntrygetVersion in interface FileEntrynull if a version cannot be determinedpublic Path getPath()
FileEntrypublic String getOutputRelativePath()
FileEntrygetOutputRelativePath in interface FileEntrypublic List<String> getRelativePathSegements(String swidTagPath)
FileEntrygetRelativePathSegements in interface FileEntryswidTagPath - the path to relativizepublic org.codehaus.plexus.components.io.fileselectors.FileInfo asFileInfo()
asFileInfo in interface FileEntryCopyright © 2020 National Institute of Standards and Technology. All rights reserved.