Beispiel #1
0
    def next(self) -> tuple:
        '''
            Get next line parsed based on delimiter as a tuple.

            Returns:
                Line as a Python tuple object.
        '''
        line = self.__filereader.next()
        return data_utils.split(line.rstrip(), self.delimiter)
Beispiel #2
0
 def split_as_str_list(self, delimiter=","):
     try:
         return data_utils.split(self.as_str(), delimiter=delimiter)
     except:
         self.__throw_wrong_repr_exception("string list")
Beispiel #3
0
 def split_as_str_list(cls, val, delimiter=","):
     try:
         return data_utils.split(str(val), delimiter=delimiter)
     except:
         cls.__wrong_repr(val, "string list")
Beispiel #4
0
 def next(self):
     line = self.__filereader.next()
     return data_utils.split(line.rstrip(), self.delimiter)