Ignore:
Timestamp:
11/05/11 17:38:57 (13 years ago)
Author:
vronk
Message:

various small changes, clean up code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Utils.java

    r1540 r1613  
    103103                return config;
    104104        }
     105
     106        /**
     107         * convenience function to get a config property value
     108         * @param key
     109         * @return
     110         */
     111                public static String getConfig(String key) {
     112                                return getConfig().getProperty(key);           
     113                }
     114               
    105115       
    106116        /**
     
    185195                    DocumentBuilderFactory.newInstance();
    186196                    DocumentBuilder builder = factory.newDocumentBuilder();
    187                     document = builder.parse(path);                 
     197                    InputStream doc_is = load2Stream(path);
     198                    document = builder.parse(doc_is);               
     199                   
    188200                }
    189201                catch (FactoryConfigurationError e) {
Note: See TracChangeset for help on using the changeset viewer.