public class FSFileResource extends Object implements FileResource
FILE_EXTENSION| Constructor and Description |
|---|
FSFileResource(File inputRoot,
File fullPath)
Deprecated.
to be removed in Tika 2.0
|
FSFileResource(Path inputRoot,
Path fullPath)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Metadata |
getMetadata()
This gets the metadata available before the parsing of the file.
|
String |
getResourceId()
This is only used in logging to identify which file
may have caused problems.
|
InputStream |
openInputStream() |
@Deprecated public FSFileResource(File inputRoot, File fullPath)
inputRoot - fullPath - FSFileResource(Path, Path)public FSFileResource(Path inputRoot, Path fullPath)
inputRoot - the input root for the filefullPath - the full path to the fileIllegalArgumentException - if the fullPath is not
a child of inputRootpublic String getResourceId()
FileResourcegetResourceId in interface FileResourcepublic Metadata getMetadata()
FileResourcegetMetadata in interface FileResourcepublic InputStream openInputStream() throws IOException
openInputStream in interface FileResourceIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.