From: Tobias R. <tob...@us...> - 2007-07-09 22:14:39
|
Update of /cvsroot/tmapi-utils/tmapi-utils/src/org/tmapiutils/impexp/xtm In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16455 Modified Files: XTMParser.java Log Message: Added setEncoding to parse XTM of any kind Index: XTMParser.java =================================================================== RCS file: /cvsroot/tmapi-utils/tmapi-utils/src/org/tmapiutils/impexp/xtm/XTMParser.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** XTMParser.java 3 Mar 2005 17:33:32 -0000 1.4 --- XTMParser.java 9 Jul 2007 22:14:40 -0000 1.5 *************** *** 72,75 **** --- 72,76 ---- private boolean finished=false; private Resolver resolver; + private String encoding = null; public XTMParser(TopicMapSystem tSystem) { *************** *** 86,89 **** --- 87,94 ---- } + public void setEncoding(String encoding) { + this.encoding = encoding; + } + public void setTopicResolver(Resolver resolver){ this.resolver=resolver; *************** *** 98,102 **** if(finished==true) this.tmap=null; ! p.setInput( stream, null ); switch ( p.next() ) { --- 103,107 ---- if(finished==true) this.tmap=null; ! p.setInput( stream, encoding ); switch ( p.next() ) { |