/ Published in: Java

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// example code of access data using getResource() if(defalutPath == null) { log.info("look up in mmseg.dic.path="+defPath); if(defPath == null) { if(url != null) { defPath = url.getFile(); log.info("look up in classpath="+defPath); } else { log.info("look up in user.dir="+defPath); } } if(!defalutPath.exists()) { log.warning("defalut dic path="+defalutPath+" not exist"); } } return defalutPath; }
URL: http://code.google.com/p/mmseg4j/
Comments
