mySink.initialize(Collections.<String, Object>emptyMap()); SAXParser parser = createParser(); InputStream inputStream = getInputStream(myBaseUrl + "/map?bbox=" + myLeft + "," + myBottom + "," + myRight + "," + myTop); mySink.close(); cleanup();
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { double left; double right; double top; double bottom; String url; // Get the task arguments. left = getDoubleArgument(taskConfig, ARG_LEFT, DEFAULT_LEFT); right = getDoubleArgument(taskConfig, ARG_RIGHT, DEFAULT_RIGHT); top = getDoubleArgument(taskConfig, ARG_TOP, DEFAULT_TOP); bottom = getDoubleArgument(taskConfig, ARG_BOTTOM, DEFAULT_BOTTOM); url = getStringArgument(taskConfig, ARG_URL, XmlConstants.DEFAULT_URL); // Create and return the task and associated manager. return new RunnableSourceManager( taskConfig.getId(), new XmlDownloader(left, right, top, bottom, url), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { double left; double right; double top; double bottom; String url; // Get the task arguments. left = getDoubleArgument(taskConfig, ARG_LEFT, DEFAULT_LEFT); right = getDoubleArgument(taskConfig, ARG_RIGHT, DEFAULT_RIGHT); top = getDoubleArgument(taskConfig, ARG_TOP, DEFAULT_TOP); bottom = getDoubleArgument(taskConfig, ARG_BOTTOM, DEFAULT_BOTTOM); url = getStringArgument(taskConfig, ARG_URL, XmlConstants.DEFAULT_URL); // Create and return the task and associated manager. return new RunnableSourceManager( taskConfig.getId(), new XmlDownloader(left, right, top, bottom, url), taskConfig.getPipeArgs() ); } }
mySink.initialize(Collections.<String, Object>emptyMap()); SAXParser parser = createParser(); InputStream inputStream = getInputStream(myBaseUrl + "/map?bbox=" + myLeft + "," + myBottom + "," + myRight + "," + myTop); mySink.close(); cleanup();