Package org.anchoranalysis.io.input.file
Class SingleFileInputBase
Object
SingleFileInputBase
- All Implemented Interfaces:
InputFromManager
- Direct Known Subclasses:
FileInput
,FileWithDirectoryInput
,ImageMetadataInput
A base class for inputs that refer to a single file.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SingleFileInputBase
(NamedFile file) Creates for a particular file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, close, identifierAsPath, pathForBindingRequired
-
Constructor Details
-
SingleFileInputBase
Creates for a particular file.- Parameters:
file
- the file, with an associated name.
-
-
Method Details
-
identifier
Description copied from interface:InputFromManager
A unique name associated with the input.The name should never begin with or end with whitespace.
It should never contain backslashes, but forward-slashes are permitted.
- Specified by:
identifier
in interfaceInputFromManager
- Returns:
- a string uniquely (in the current dataset) identifying the input in a meaningful way.
-
pathForBinding
Description copied from interface:InputFromManager
A path to a file from which this input originated.This path is not guaranteed to be unique for each input i.e. multiple inputs may originate from the same path.
- Specified by:
pathForBinding
in interfaceInputFromManager
- Returns:
- the primary path associated with the input, if it exists.
-
toString
-
getFile
The associated single file.- Returns:
- the file, as used internally.
-