src/org/openstreetmap/josm/plugins/opendata/core/modules/ReadRemoteModuleInformationTask.java
protected void parseModuleListDocument(String site, String doc) {
        try {
            getProgressMonitor().subTask(tr("Parsing module list from site ''{0}''", site));
            InputStream in = new ByteArrayInputStream(doc.getBytes("UTF-8"));
            availableModules.addAll(new ModuleListParser().parse(in));
        } catch (UnsupportedEncodingException e) {
            Logging.error(tr("Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}", site, e.toString()));
            e.printStackTrace();
        } catch (ModuleListParseException e) {
            Logging.error(tr("Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}", site, e.toString()));
            e.printStackTrace();
        }
    }
/**
     * Parses the module list
     *
     * @param site the site from where the list was downloaded
     * @param doc the document with the module list
     */
Parses the module list

@param site the site from where the list was downloaded
@param doc the document with the module list
Parses the module list @param site the site from where the list was downloaded @param doc the document with the module list
protected void parseModuleListDocument(String site, String doc) {
        try {
            getProgressMonitor().subTask(tr("Parsing module list from site ''{0}''", site));
            InputStream in = new ByteArrayInputStream(doc.getBytes("UTF-8"));
            availableModules.addAll(new ModuleListParser().parse(in));
        } catch (UnsupportedEncodingException e) {
            Logging.error(tr("Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}", site, e.toString()));
            e.printStackTrace();
        } catch (ModuleListParseException e) {
            Logging.error(tr("Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}", site, e.toString()));
            e.printStackTrace();
        }
    }
protected void parseModuleListDocument ( String site , String doc ) { try { getProgressMonitor ( ) . subTask ( tr ( "Parsing module list from site ''{0}''" , site ) ) ; InputStream in = new ByteArrayInputStream ( doc . getBytes ( "UTF-8" ) ) ; availableModules . addAll ( new ModuleListParser ( ) . parse ( in ) ) ; } catch ( UnsupportedEncodingException e ) { Logging . error ( tr ( "Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}" , site , e . toString ( ) ) ) ; e . printStackTrace ( ) ; } catch ( ModuleListParseException e ) { Logging . error ( tr ( "Failed to parse module list document from site ''{0}''. Skipping site. Exception was: {1}" , site , e . toString ( ) ) ) ; e . printStackTrace ( ) ; } }
Parses the module list
Parses the module list