Package weka.core.converters

Examples of weka.core.converters.FileSourcedConverter


      currentFileIsDir = true;
    } else {
      m_fileChooser.setSelectedFile(tmp2);
    }
   
    FileSourcedConverter loader = (FileSourcedConverter) m_dsLoader.getLoader();
    String[] ext = loader.getFileExtensions();
    ExtensionFileFilter firstFilter = null;
    for (int i = 0; i < ext.length; i++) {
      ExtensionFileFilter ff =
  new ExtensionFileFilter(
      ext[i], loader.getFileDescription() + " (*" + ext[i] + ")");
      if (i == 0)
  firstFilter = ff;
      m_fileChooser.addChoosableFileFilter(ff);
    }
    if (firstFilter != null)
View Full Code Here


    if (tmp.isDirectory()) {
      m_fileChooser.setCurrentDirectory(tmp);
    } else {
      m_fileChooser.setSelectedFile(tmp);
    }
    FileSourcedConverter loader = (FileSourcedConverter) m_dsLoader.getLoader();
    String[] ext = loader.getFileExtensions();
    ExtensionFileFilter firstFilter = null;
    for (int i = 0; i < ext.length; i++) {
      ExtensionFileFilter ff =
  new ExtensionFileFilter(
      ext[i], loader.getFileDescription() + " (*" + ext[i] + ")");
      if (i == 0)
  firstFilter = ff;
      m_fileChooser.addChoosableFileFilter(ff);
    }
    if (firstFilter != null)
View Full Code Here

    int        n;
    String       classname;
    Class       cls;
    String[]       ext;
    String       desc;
    FileSourcedConverter   converter;
    ExtensionFileFilter   filter;
   
    if (loader)
      m_LoaderFileFilters = new Vector<ExtensionFileFilter>();
    else
      m_SaverFileFilters  = new Vector<ExtensionFileFilter>();

    for (i = 0; i < classnames.size(); i++) {
      classname = (String) classnames.get(i);
     
      // get data from converter
      try {
  cls       = Class.forName(classname);
  converter = (FileSourcedConverter) cls.newInstance();
  ext       = converter.getFileExtensions();
  desc      = converter.getFileDescription();
      }
      catch (Exception e) {
  cls       = null;
  converter = null;
  ext       = new String[0];
View Full Code Here

    if (tmp.isDirectory()) {
      m_fileChooser.setCurrentDirectory(tmp);
    } else {
      m_fileChooser.setSelectedFile(tmp);
    }
    FileSourcedConverter loader = (FileSourcedConverter) m_dsLoader.getLoader();
    String[] ext = loader.getFileExtensions();
    ExtensionFileFilter firstFilter = null;
    for (int i = 0; i < ext.length; i++) {
      ExtensionFileFilter ff =
  new ExtensionFileFilter(
      ext[i], loader.getFileDescription() + " (*" + ext[i] + ")");
      if (i == 0)
  firstFilter = ff;
      m_fileChooser.addChoosableFileFilter(ff);
    }
    if (firstFilter != null)
View Full Code Here

    int        n;
    String       classname;
    Class       cls;
    String[]       ext;
    String       desc;
    FileSourcedConverter   converter;
    ExtensionFileFilter   filter;
   
    if (loader)
      m_LoaderFileFilters = new Vector<ExtensionFileFilter>();
    else
      m_SaverFileFilters  = new Vector<ExtensionFileFilter>();

    for (i = 0; i < classnames.size(); i++) {
      classname = (String) classnames.get(i);
     
      // get data from converter
      try {
  cls       = Class.forName(classname);
  converter = (FileSourcedConverter) cls.newInstance();
  ext       = converter.getFileExtensions();
  desc      = converter.getFileDescription();
      }
      catch (Exception e) {
  cls       = null;
  converter = null;
  ext       = new String[0];
View Full Code Here

    int        n;
    String       classname;
    Class       cls;
    String[]       ext;
    String       desc;
    FileSourcedConverter   converter;
    ExtensionFileFilter   filter;
   
    if (loader)
      m_LoaderFileFilters = new Vector<ExtensionFileFilter>();
    else
      m_SaverFileFilters  = new Vector<ExtensionFileFilter>();

    for (i = 0; i < classnames.size(); i++) {
      classname = (String) classnames.get(i);
     
      // get data from converter
      try {
  cls       = Class.forName(classname);
  converter = (FileSourcedConverter) cls.newInstance();
  ext       = converter.getFileExtensions();
  desc      = converter.getFileDescription();
      }
      catch (Exception e) {
  cls       = null;
  converter = null;
  ext       = new String[0];
View Full Code Here

      currentFileIsDir = true;
    } else {
      m_fileChooser.setSelectedFile(tmp2);
    }
   
    FileSourcedConverter loader = (FileSourcedConverter) m_dsLoader.getLoader();
    String[] ext = loader.getFileExtensions();
    ExtensionFileFilter firstFilter = null;
    for (int i = 0; i < ext.length; i++) {
      ExtensionFileFilter ff =
  new ExtensionFileFilter(
      ext[i], loader.getFileDescription() + " (*" + ext[i] + ")");
      if (i == 0)
  firstFilter = ff;
      m_fileChooser.addChoosableFileFilter(ff);
    }
    if (firstFilter != null)
View Full Code Here

TOP

Related Classes of weka.core.converters.FileSourcedConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.