Examples of DataFormatException


Examples of org.maltparserx.core.io.dataformat.DataFormatException

        }
        writer.write("\n");
      }

    } catch (IOException e) {
      throw new DataFormatException("The Negra writer is not able to write. ", e);
    }
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

            }
          }
        }
        writer.write("\n");
      } catch (IOException e) {
        throw new DataFormatException("The Negra writer is not able to write the non-terminals. ", e);
      }
    }
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

    this.optionString = optionString;
    String[] argv;
    try {
      argv = optionString.split("[_\\p{Blank}]");
    } catch (PatternSyntaxException e) {
      throw new DataFormatException("Could not split the penn writer option '"+optionString+"'. ", e);
    }
    for (int i=0; i < argv.length-1; i++) {
      if(argv[i].charAt(0) != '-') {
        throw new DataFormatException("The argument flag should start with the following character '-', not with "+argv[i].charAt(0));
      }
      if(++i>=argv.length) {
        throw new DataFormatException("The last argument does not have any value. ");
      }
      switch(argv[i-1].charAt(1)) {
      case 's':
        try {
          START_ID_OF_NONTERMINALS = Integer.parseInt(argv[i]);
        } catch (NumberFormatException e){
          throw new MaltChainedException("The TigerXML Reader option -s must be an integer value. ");
        }
        break;
      default:
        throw new DataFormatException("Unknown svm parameter: '"+argv[i-1]+"' with value '"+argv[i]+"'. ");   
      }
    } 
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

          writer.close();
        }
        writer = null;
      }
    }   catch (IOException e) {
      throw new DataFormatException("Could not close the output file. ", e);
    }
  }
View Full Code Here

Examples of org.xrace.service.importation.DataFormatException

      CollectionUtils.collect(rowIterator, new FromExcelTransformer(t), t
          .getImportationLines());
    }
    catch (RuntimeException e)
    {
      throw new DataFormatException("Le contenu du fichier contient "
          + "des erreurs de format", e);
    }

    save(t);
  }
View Full Code Here

Examples of util.DataFormatException

    public void write( DataOutput o ) throws IOException{
  o.writeByte( tag );
  if ( resolved ){
      o.writeShort( str.index );
  } else {
      throw new DataFormatException("unresolved StringConstant");
      //o.writeShort( strIndex );
  }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.