- All Implemented Interfaces:
public class FSFileResource extends Object implements FileResourceFileSystem(FS)Resource wraps a file name. This class automatically sets the following keys in Metadata:
- Metadata.RESOURCE_NAME_KEY (file name)
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getMetadata()This gets the metadata available before the parsing of the file.
getResourceId()This is only used in logging to identify which file may have caused problems.
@Deprecated public FSFileResource(File inputRoot, File fullPath)Deprecated.to be removed in Tika 2.0
- See Also:
public String getResourceId()Description copied from interface:
FileResourceThis is only used in logging to identify which file may have caused problems. While it is probably best to use unique ids for the sake of debugging, it is not necessary that the ids be unique. This id is never used as a hashkey by the batch processors, for example.
public Metadata getMetadata()Description copied from interface:
FileResourceThis gets the metadata available before the parsing of the file. This will typically be "external" metadata: file name, file size, file location, data stream, etc. That is, things that are known about the file from outside information, not file-internal metadata.