Package cdc.issues.io

Interface ProfileIo


public interface ProfileIo
Interface describing IO for Profile.

It can be constructed with ProfileIoFactory.

Author:
Damien Carbonne
  • Method Details

    • getFeatures

      ProfileIoFeatures getFeatures()
      Returns:
      The used features.
    • save

      void save(Profile profile, File file) throws IOException
      Saves a Profile to a file.
      Parameters:
      profile - The profile.
      file - The file.
      Throws:
      IOException - When an IO error occurs.
    • load

      Profile load(File file) throws IOException
      Loads a Profile from a file.
      Parameters:
      file - The file.
      Returns:
      The loaded Profile.
      Throws:
      IOException - When an IO error occurs.
    • save

      static void save(ProfileIoFeatures features, Profile profile, File file) throws IOException
      Saves a profile to a file using particular features.
      Parameters:
      features - The features.
      profile - The profile.
      file - The file.
      Throws:
      IOException - When an IO error occurs.
    • load

      static Profile load(ProfileIoFeatures features, File file) throws IOException
      Parameters:
      features - The features.
      file - The file.
      Returns:
      A new instance of profile created by reading file and configured with features.
      Throws:
      IOException - When an IO error occurs.