List of usage examples for org.apache.commons.vfs.provider LayeredFileName LayeredFileName
public LayeredFileName(final String scheme, final FileName outerUri, final String path, final FileType type)
From source file:com.github.stephenc.javaisotools.vfs.provider.iso.IsoFileProvider.java
protected FileSystem doCreateFileSystem(final String scheme, final FileObject file, final FileSystemOptions fileSystemOptions) throws FileSystemException { final FileName rootName = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER); return new IsoFileSystem(rootName, file, fileSystemOptions); }
From source file:org.sonatype.gshell.vfs.provider.truezip.TruezipFileProvider.java
/** * Creates a layered file system. This method is called if the file system is not cached. * * @param scheme The URI scheme./*from ww w. j a v a2 s . c om*/ * @param file The file to create the file system on top of. * @return The file system. */ protected FileSystem doCreateFileSystem(final String scheme, final FileObject file, final FileSystemOptions options) throws FileSystemException { FileName name = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER); return new TruezipFileSystem(name, file, options); }