资源持久化API(二)
?
1.加载工程中的资源:
?
?
ResourceSet resourceSet = new ResourceSetImpl();Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);?
?
http://book.51cto.com/art/201007/214609.htm
?
?
XMLResource resource = new XMLResourceImpl(URI .createFileURI( " c:\\temp\\test.xml " ));?
?
http://www.4ucode.com/Study/Topic/277009
?
?
?
http://www.qqread.com/java/r022397600.html
?
?
?
?
?
?
?
?
?
?
?
?