List of usage examples for org.apache.commons.vfs2.provider AbstractFileName getPath
public String getPath()
From source file:com.github.junrar.vfs2.provider.rar.RARFileSystem.java
/** * Creates a file object./*from w ww.j a va2 s .com*/ */ @Override protected FileObject createFile(final AbstractFileName name) throws FileSystemException { String path = name.getPath().substring(1); if (path.length() == 0) { return new RARFileObject(name, archive, null, this); } else if (files.containsKey(name.getPath())) { return new RARFileObject(name, archive, files.get(name.getPath()), this); } return null; }