ca.uhn.hl7v2.conf.store
Class FileProfileStore

java.lang.Object
  extended by ca.uhn.hl7v2.conf.store.FileProfileStore
All Implemented Interfaces:
ProfileStore

public class FileProfileStore
extends java.lang.Object
implements 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
FileProfileStore(java.lang.String file)
          Creates a new instance of FileProfileStore
 
Method Summary
 java.lang.String getProfile(java.lang.String ID)
          Retrieves profile from persistent storage (by ID).
 void persistProfile(java.lang.String ID, java.lang.String profile)
          Stores profile in persistent storage with given ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileProfileStore

public FileProfileStore(java.lang.String file)
Creates a new instance of FileProfileStore

Method Detail

getProfile

public java.lang.String getProfile(java.lang.String ID)
                            throws java.io.IOException
Retrieves profile from persistent storage (by ID). Returns null if the profile isn't found.

Specified by:
getProfile in interface ProfileStore
Throws:
java.io.IOException

persistProfile

public void persistProfile(java.lang.String ID,
                           java.lang.String profile)
                    throws java.io.IOException
Stores profile in persistent storage with given ID.

Specified by:
persistProfile in interface ProfileStore
Throws:
java.io.IOException


Copyright © 2001-2011 University Health Network. All Rights Reserved.