List of usage examples for org.apache.commons.vfs2.provider LayeredFileName LayeredFileName
public LayeredFileName(final String scheme, final FileName outerUri, final String path, final FileType type)
From source file:com.github.junrar.vfs2.provider.rar.RARFileProvider.java
/** * Creates a layered file system. This method is called if the file system * is not cached./*from w ww. j a v a 2 s . c o m*/ * * @param scheme * The URI scheme. * @param file * The file to create the file system on top of. * @return The file system. */ @Override protected FileSystem doCreateFileSystem(final String scheme, final FileObject file, final FileSystemOptions fileSystemOptions) throws FileSystemException { final AbstractFileName rootName = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER); return new RARFileSystem(rootName, file, fileSystemOptions); }
From source file:org.ysb33r.groovy.vfsplugin.cpio.CpioFileProvider.java
/** * Creates a layered file system. This method is called if the file system * is not cached.//from w w w. j ava2 s . c om * * @param scheme The URI scheme. * @param file The file to create the file system on top of. * @return The file system. */ @Override protected FileSystem doCreateFileSystem(final String scheme, final FileObject file, final FileSystemOptions fileSystemOptions) throws FileSystemException { final AbstractFileName rootName = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER); return new CpioFileSystem(rootName, file, fileSystemOptions); }