crowdwalk/src/main/java/nodagumi/ananPJ/misc/CrowdWalkPropertiesHandler.java
/**
     * scan XML file as Properties into Term
     */
scan XML file as Properties into Term
scan XML file as Properties into Term
private Term scanXmlPropertiesIntoTerm(InputStream stream, Term term) {
        try {
            Properties _prop = new Properties() ;
            _prop.loadFromXML(stream) ;
            for(String key : _prop.stringPropertyNames()) {
                term.setArg(Itk.intern(key),
                            Itk.intern(_prop.getProperty(key))) ;
            }
        } catch (IOException ioe) {
            Itk.logError("IO exception") ;
            Itk.quitWithStackTrace(ioe) ;
        } catch(Exception e) {
            Itk.logError("unknown exception", e.getMessage());
            Itk.quitWithStackTrace(e) ;
        }
        return term ;
    }
private Term scanXmlPropertiesIntoTerm ( InputStream stream , Term term ) { try { Properties _prop = new Properties ( ) ; _prop . loadFromXML ( stream ) ; for ( String key : _prop . stringPropertyNames ( ) ) { term . setArg ( Itk . intern ( key ) , Itk . intern ( _prop . getProperty ( key ) ) ) ; } } catch ( IOException ioe ) { Itk . logError ( "IO exception" ) ; Itk . quitWithStackTrace ( ioe ) ; } catch ( Exception e ) { Itk . logError ( "unknown exception" , e . getMessage ( ) ) ; Itk . quitWithStackTrace ( e ) ; } return term ; }
scan XML file as Properties into Term
scan XML file as Properties into Term