List of usage examples for org.springframework.core.io VfsResource VfsResource
public VfsResource(Object resource)
From source file:com.javaetmoi.core.spring.vfs.Vfs2Resource.java
@Override public Resource createRelative(String relativePath) throws IOException { if (!relativePath.startsWith(".") && relativePath.contains("/")) { try {/*from w w w . ja v a 2 s . c om*/ return new VfsResource(Vfs2Utils.getChild(this.resource, relativePath)); } catch (IOException ex) { // fall back to getRelative } } return new VfsResource(Vfs2Utils.getRelative(new URL(getURL(), relativePath))); }