public class FileFileEntry extends AbstractFileEntry
| Constructor and Description |
|---|
FileFileEntry(Path file,
Path base)
Construct a new file entry for a file, keeping track of the file's base directory.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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 Long getSize()
FileEntrypublic InputStream getInputStream() throws FileNotFoundException
FileEntryFileNotFoundException - if the file does not existpublic String getVersion()
FileEntrynull if a version cannot be determinedprotected Path getBase()
AbstractFileEntrygetBase in class AbstractFileEntrypublic Path getPath()
AbstractFileEntrygetPath in interface FileEntrygetPath in class AbstractFileEntryprotected String getOutputBase()
getOutputBase in class AbstractFileEntryCopyright © 2020 National Institute of Standards and Technology. All rights reserved.