Interface DataManager


  • public interface DataManager
    The data manager provides data import and export facilities.
    • Method Detail

      • exportData

        void exportData​(OutputStream outputStream)
        Export all data of the application as a stream.
        Parameters:
        outputStream - the stream to output data to.
      • exportData

        void exportData​(OutputStream outputStream,
                        String group)
        Export data from one specified group as a stream.
        Parameters:
        outputStream - the stream to output data to.
        group - the data group.
      • exportData

        void exportData​(OutputStream outputStream,
                        String group,
                        String name)
        Export a specified data set as a stream.
        Parameters:
        outputStream - the stream to output data to.
        group - the data group.
        name - the data name.
      • importData

        void importData​(InputStream inputStream)
        Import data in the application from a stream.
        Parameters:
        inputStream - the stream to read data from.
      • importData

        void importData​(InputStream inputStream,
                        String group)
        Import data from one specified group, ignoring other data.
        Parameters:
        inputStream - the stream to read data from.
        group - the data group.
      • importData

        void importData​(InputStream inputStream,
                        String group,
                        String name)
        Import data from the specified data set, ignoring other data.
        Parameters:
        inputStream - the stream to read data from.
        group - the data group.
        name - the data name.
      • isInitialized

        boolean isInitialized​(String group,
                              String name)
        Returns if a particular data set is already initialized in the application. This method is used to know if it must automatically load initialization data.
        Parameters:
        group - the data group.
        name - the data name.
        Returns:
        true if already initialized, false otherwise.