public Map read(SSOToken token,String objName) throws SMSException, SSOException {
  if (objName == null || objName.length() == 0) {
    throw new IllegalArgumentException("SMSFlatFileObject.read: object name is null or empty.");
  }
  String objKey=objName.toLowerCase();
  Map attrMap=null;
  mRWLock.readRequest();
  try {
    String filepath=mNameMap.getProperty(objKey);
    if (filepath == null) {
      if (mDebug.messageEnabled()) {
        mDebug.message("SMSFlatFileObject.read: object " + objName + " not found.");
      }
    }
 else {
      File filehandle=new File(filepath);
      Properties props=null;
      try {
        props=loadProperties(filehandle,objName);
      }
 catch (      ServiceNotFoundException e) {
      }
      if (props != null) {
        attrMap=new CaseInsensitiveHashMap();
        Enumeration keys=props.propertyNames();
        while (keys.hasMoreElements()) {
          String key=(String)keys.nextElement();
          String vals=props.getProperty(key);
          if ((vals != null) && (vals.length() > 0)) {
            attrMap.put(key,toValSet(key,vals));
          }
        }
      }
    }
  }
  finally {
    mRWLock.readDone();
  }
  return attrMap;
}

public Map read ( SSOToken token , String objName ) throws SMSException , SSOException { if ( objName == null || objName . length ( ) == 0 ) { throw new IllegalArgumentException ( "SMSFlatFileObject.read: object name is null or empty." ) ; } String objKey = objName . toLowerCase ( ) ; Map attrMap = null ; mRWLock . readRequest ( ) ; try { String filepath = mNameMap . getProperty ( objKey ) ; if ( filepath == null ) { if ( mDebug . messageEnabled ( ) ) { mDebug . message ( "SMSFlatFileObject.read: object " + objName + " not found." ) ; } } else { File filehandle = new File ( filepath ) ; Properties props = null ; try { props = loadProperties ( filehandle , objName ) ; } catch ( ServiceNotFoundException e ) { } if ( props != null ) { attrMap = new CaseInsensitiveHashMap ( ) ; Enumeration keys = props . propertyNames ( ) ; while ( keys . hasMoreElements ( ) ) { String key = ( String ) keys . nextElement ( ) ; String vals = props . getProperty ( key ) ; if ( ( vals != null ) && ( vals . length ( ) > 0 ) ) { attrMap . put ( key , toValSet ( key , vals ) ) ; } } } } } finally { mRWLock . readDone ( ) ; } return attrMap ; }
reads in attributes of a configuration object .
