Package ca.uhn.hl7v2.conf.store
Class FileProfileStore
java.lang.Object
ca.uhn.hl7v2.conf.store.FileProfileStore
- All Implemented Interfaces:
ProfileStore
Stores profiles in a local directory. Profiles are stored as text
in files named ID.xml (where ID is the profile ID).
- Author:
- Bryan Tripp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProfile(String theID) Retrieves profile from persistent storage (by ID).voidpersistProfile(String ID, String profile) Stores profile in persistent storage with given ID.
-
Constructor Details
-
FileProfileStore
Creates a new instance of FileProfileStore
-
-
Method Details
-
getProfile
Retrieves profile from persistent storage (by ID). Returns null if the profile isn't found.- Specified by:
getProfilein interfaceProfileStore- Throws:
IOException
-
persistProfile
Stores profile in persistent storage with given ID.- Specified by:
persistProfilein interfaceProfileStore- Throws:
IOException
-