# Path: pytablereader/_constant.py
# class Default:
#     ENCODING = "utf-8"
# 
# Path: pytablereader/error.py
# class LoaderNotFoundError(Exception):
#     """
#     Exception raised when loader not found.
#     """


import abc
import warnings
from mbstrdecoder import MultiByteStrDecoder
from .._constant import Default
from ..error import LoaderNotFoundError
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""





class BaseTableLoaderFactory(metaclass=abc.ABCMeta):
    @property
    def source(self):
        """
        :return: Data source to load.
        :rtype: str
        """

        return self._source

    def __init__(self, source, encoding=None):
        if not encoding:

# Path: pytablereader/_constant.py
# class Default:
#     ENCODING = "utf-8"
# 
# Path: pytablereader/error.py
# class LoaderNotFoundError(Exception):
#     """
#     Exception raised when loader not found.
#     """


# Path: pytablereader/factory/_base.py
import abc
import warnings
from mbstrdecoder import MultiByteStrDecoder
from .._constant import Default
from ..error import LoaderNotFoundError

"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""





class BaseTableLoaderFactory(metaclass=abc.ABCMeta):
    @property
    def source(self):
        """
        :return: Data source to load.
        :rtype: str
        """

        return self._source

    def __init__(self, source, encoding=None):
        if not encoding:

            self._encoding = Default.ENCODING