Package cdc.issues.io
Interface ProfileIo
public interface ProfileIo
Interface describing IO for
Profile.
It can be constructed with ProfileIoFactory.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileloadProfile(ProfileIoFeatures features, File file) loadProfile(File file) Loads a Profile from a file.static ProfileConfigloadProfileConfig(ProfileIoFeatures features, File file) loadProfileConfig(File file) static voidsave(ProfileIoFeatures features, ProfileConfig config, File file) static voidsave(ProfileIoFeatures features, Profile profile, File file) Saves a profile to a file using particular features.voidsave(ProfileConfig config, File file) voidSaves a Profile to a file.
-
Method Details
-
getFeatures
ProfileIoFeatures getFeatures()- Returns:
- The used
features.
-
save
Saves a Profile to a file.- Parameters:
profile- The profile.file- The file.- Throws:
IOException- When an IO error occurs.
-
save
- Throws:
IOException
-
loadProfile
Loads a Profile from a file.- Parameters:
file- The file.- Returns:
- The loaded Profile.
- Throws:
IOException- When an IO error occurs.
-
loadProfileConfig
- Throws:
IOException
-
save
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.
-
save
- Throws:
IOException
-
loadProfile
- Parameters:
features- The features.file- The file.- Returns:
- A new instance of profile created by reading
fileand configured withfeatures. - Throws:
IOException- When an IO error occurs.
-
loadProfileConfig
- Throws:
IOException
-