Package com.greentea.relaxation.jnmf.util.data.loading

Examples of com.greentea.relaxation.jnmf.util.data.loading.DataLoadException


         rows.add(row);
      }

      if (rows.isEmpty())
      {
         throw new DataLoadException(Localizer.getString(StringId.FILE_DOESNT_CONTAIN_TEXT_DATA));
      }

      final int preloadedDataColumnsCount = rows.get(0).size();
      if (metadataOfPreload != null &&
              preloadedDataColumnsCount != metadataOfPreload.getColumnsCount())
View Full Code Here


         scanner = createScanner();
         rows = preloadData(scanner);
      }
      catch (FileNotFoundException e)
      {
         throw new DataLoadException(Localizer.getString(StringId.DATA_FILE_NOT_FOUND), e);
      }
      finally
      {
         if (scanner != null)
         {
View Full Code Here

         {
            metadata = Metadata.parseXml(metadataXml.toString());
         }
         catch (WrongMetadataException e)
         {
            throw new DataLoadException(Localizer.getString(StringId.WRONG_METADATA_FORMAT), e);
         }
      }
      return metadata;
   }
View Full Code Here

         scanner = createScanner();
         dataset = load(scanner);
      }
      catch (FileNotFoundException e)
      {
         throw new DataLoadException(Localizer.getString(StringId.DATA_FILE_NOT_FOUND), e);
      }
      finally
      {
         if (scanner != null)
         {
View Full Code Here

            scanner = createScanner();
            addParsingDetailsAndMetadataToFile(scanner);
         }
         catch (FileNotFoundException e)
         {
            throw new DataLoadException(Localizer.getString(StringId.DATA_FILE_NOT_FOUND), e);
         }
         finally
         {
            if (scanner != null)
            {
View Full Code Here

         scanner = createScanner();
         parsingDetails = loadParsingDetails(scanner);
      }
      catch (FileNotFoundException e)
      {
         throw new DataLoadException(Localizer.getString(StringId.DATA_FILE_NOT_FOUND), e);
      }
      finally
      {
         if (scanner != null)
         {
View Full Code Here

   private Dataset loadDataFromInteractiveInput(Metadata metadata) throws DataLoadException
   {
      Scanner s = new Scanner(interactiveInputTextPane.getText());
      if (!s.hasNextLine())
      {
         throw new DataLoadException(Localizer.getString(StringId.NO_DATA_FOR_ANALYSIS));
      }

      TextDataLoader textDataLoader = new TextDataLoader();
      textDataLoader.setDataInTextForm(interactiveInputTextPane.getText());
      textDataLoader.setLoadInputData(true);
View Full Code Here

TOP

Related Classes of com.greentea.relaxation.jnmf.util.data.loading.DataLoadException

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.