/** * Resets the Loader object and sets the source of the data set to be * the supplied url. * * @param url the source url. * @throws IOException if an error occurs */ public void setSource(URL url) throws IOException { m_structure = null; m_Buffer = null; setRetrieval(NONE); setSource(url.openStream()); m_URL = url.toString(); }
/** * Resets the Loader object and sets the source of the data set to be * the supplied url. * * @param url the source url. * @throws IOException if an error occurs */ public void setSource(URL url) throws IOException { m_structure = null; m_Buffer = null; setRetrieval(NONE); setSource(url.openStream()); m_URL = url.toString(); }
/** * Resets the Loader ready to read a new data set. * * @throws IOException if something goes wrong */ public void reset() throws IOException { m_structure = null; m_Buffer = null; setRetrieval(NONE); if ((m_File != null) && (new File(m_File)).isFile()) { setFile(new File(m_File)); } else if ((m_URL != null) && !m_URL.equals("http://")) { setURL(m_URL); } }
/** * Resets the Loader ready to read a new data set. * * @throws IOException if something goes wrong */ public void reset() throws IOException { m_structure = null; m_Buffer = null; setRetrieval(NONE); if ((m_File != null) && (new File(m_File)).isFile()) { setFile(new File(m_File)); } else if ((m_URL != null) && !m_URL.equals("http://")) { setURL(m_URL); } }
throw new IOException("Cannot mix getting Instances in both incremental and batch modes"); setRetrieval(BATCH); if (m_structure == null) getStructure();
throw new IOException("Cannot mix getting Instances in both incremental and batch modes"); setRetrieval(BATCH); if (m_structure == null) getStructure();