| StoreFileExtPipe {bdpar} | R Documentation |
Class to get the file's extension field of an Instance
Description
Gets the extension of a file. Creates the extension property which indicates extension of the file.
Note
StoreFileExtPipe will automatically invalidate the
Instance if it is not able to find the
extension from the path field.
Inherit
This class inherits from GenericPipe and implements the
pipe abstract function.
Super class
bdpar::GenericPipe -> StoreFileExtPipe
Methods
Public methods
Inherited methods
Method new()
Creates a StoreFileExtPipe object.
Usage
StoreFileExtPipe$new( propertyName = "extension", alwaysBeforeDeps = list(), notAfterDeps = list() )
Arguments
propertyNameA
charactervalue. Name of the property associated with theGenericPipe.alwaysBeforeDepsA
listvalue. The dependencies alwaysBefore (GenericPipesthat must be executed before this one).notAfterDepsA
listvalue. The dependencies notAfter (GenericPipesthat cannot be executed after this one).
Method pipe()
Preprocesses the Instance to obtain the
extension of Instance.
Usage
StoreFileExtPipe$pipe(instance)
Arguments
Returns
The Instance with the modifications that have
occurred in the pipe.
Method obtainExtension()
Gets of extension of the path.
Usage
StoreFileExtPipe$obtainExtension(path)
Arguments
pathA
charactervalue. The path of the file to get the extension.
Returns
Extension of the path.
Method clone()
The objects of this class are cloneable with this method.
Usage
StoreFileExtPipe$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
AbbreviationPipe, ContractionPipe,
File2Pipe, FindEmojiPipe,
FindEmoticonPipe, FindHashtagPipe,
FindUrlPipe, FindUserNamePipe,
GuessDatePipe, GuessLanguagePipe,
Instance, InterjectionPipe,
MeasureLengthPipe, GenericPipe,
ResourceHandler, SlangPipe,
StopWordPipe, TargetAssigningPipe,
TeeCSVPipe, ToLowerCasePipe