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()
FileEntry
public InputStream getInputStream() throws IOException
FileEntry
getInputStream
in interface FileEntry
FileNotFoundException
- if the file does not existIOException
- if the file cannot be readpublic String getVersion()
FileEntry
getVersion
in interface FileEntry
null
if a version cannot be determinedpublic Path getPath()
FileEntry
public String getOutputRelativePath()
FileEntry
getOutputRelativePath
in interface FileEntry
public List<String> getRelativePathSegements(String swidTagPath)
FileEntry
getRelativePathSegements
in interface FileEntry
swidTagPath
- the path to relativizepublic org.codehaus.plexus.components.io.fileselectors.FileInfo asFileInfo()
asFileInfo
in interface FileEntry
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.