Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5c27c1b8 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- introduced (in comment) Sabine Massmann patch

parent 24c94a61
No related branches found
No related tags found
No related merge requests found
......@@ -289,6 +289,32 @@ public class AlignmentParser extends DefaultHandler {
System.err.println("content AlignmentParser : " + content);
}
/*
// Change proposed by Sabine Massmann
// If to be integrated, then put it in the proper place
// There is no reasons to test for Double in characters
public void characters(char ch[], int start, int length) {
String oldContent = "" + content;
content = new String( ch, start, length );
if ( content != null && !content.equals("\n")
&& !content.startsWith("\n ")
// && oldContent.contains(".")
&& oldContent.indexOf('.',0) != -1
){
oldContent = oldContent.concat(content);
try {
double test = Double.parseDouble(oldContent);
content = oldContent;
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
// e.printStackTrace();
}
}
if(debugMode > 2)
System.err.println("content AlignmentParser : " + content);
}
*/
/**
* Called by the XML parser at the end of an element.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment