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, getRelativePathSegements
public Long getSize()
FileEntry
public InputStream getInputStream() throws FileNotFoundException
FileEntry
FileNotFoundException
- if the file does not existpublic String getVersion()
FileEntry
null
if a version cannot be determinedprotected Path getBase()
AbstractFileEntry
getBase
in class AbstractFileEntry
public Path getPath()
AbstractFileEntry
getPath
in interface FileEntry
getPath
in class AbstractFileEntry
protected String getOutputBase()
getOutputBase
in class AbstractFileEntry
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.