/** * Resets the Loader object and sets the source of the data set to be the * supplied File object. * * @param file the source file. * @exception IOException if an error occurs */ @Override public void setSource(File file) throws IOException { super.setSource(file); }
/** * Resets the Loader object and sets the source of the data set to be the * supplied File object. * * @param file the source file. * @exception IOException if an error occurs */ @Override public void setSource(File file) throws IOException { super.setSource(file); }
/** * sets the source File * * @param file the source file * @exception IOException if an error occurs */ @Override public void setFile(File file) throws IOException { m_structure = null; setRetrieval(NONE); // m_File = file.getAbsolutePath(); setSource(file); }
/** * sets the source File * * @param file the source file * @exception IOException if an error occurs */ @Override public void setFile(File file) throws IOException { m_structure = null; setRetrieval(NONE); // m_File = file.getAbsolutePath(); setSource(file); }
if (file.getName().endsWith( getFileExtension() + FILE_EXTENSION_COMPRESSED)) { setSource(new GZIPInputStream(new FileInputStream(file))); } else { setSource(new FileInputStream(file)); .getResource(fnameWithCorrectSeparators) != null) { setSource(this.getClass().getClassLoader() .getResourceAsStream(fnameWithCorrectSeparators));
if (file.getName().endsWith( getFileExtension() + FILE_EXTENSION_COMPRESSED)) { setSource(new GZIPInputStream(new FileInputStream(file))); } else { setSource(new FileInputStream(file)); .getResource(fnameWithCorrectSeparators) != null) { setSource(this.getClass().getClassLoader() .getResourceAsStream(fnameWithCorrectSeparators));
((weka.core.converters.AbstractFileLoader) result).setSource(new File( file)); } else {
((weka.core.converters.AbstractFileLoader) result).setSource(new File( file)); } else {
.setSource(new File(filePath));
.setSource(new File(filePath));