ExtractorSms {bdpar}R Documentation

Class to handle SMS files with tsms extension

Description

This class that inherits from the Instance class and implements the functions of extracting the text and the date of an tsms type file.

Details

Due to the fact that the creation date of the message can not be extracted from the text of an SMS, the date will be initialized to empty.

Inherit

This class inherits from Instance and implements the obtainSource and obtainDate abstracts functions.

Super class

bdpar::Instance -> ExtractorSms

Methods

Public methods

Inherited methods

Method new()

Creates a ExtractorSms object.

Usage
ExtractorSms$new(path)
Arguments
path

A character value. Path of the tsms file.


Method obtainDate()

Obtains the date of the SMS file.

Usage
ExtractorSms$obtainDate()

Method obtainSource()

Obtains the source of the SMS file. Reads the file indicated in the path. In addition, it initializes the data field with the initial source.

Usage
ExtractorSms$obtainSource()

Method toString()

Returns a character representing the instance

Usage
ExtractorSms$toString()
Returns

Instance character representation


Method clone()

The objects of this class are cloneable with this method.

Usage
ExtractorSms$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

ExtractorEml, ExtractorTwtid, ExtractorYtbid, Instance


[Package bdpar version 3.0.0 Index]