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()
FileResource
getResourceId
in interface FileResource
public Metadata getMetadata()
FileResource
getMetadata
in interface FileResource
public InputStream openInputStream() throws IOException
openInputStream
in interface FileResource
IOException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.